Jump to content

Recommended Posts

Posted

We have a Google Sheet that when a user puts a specific value in a column an email is generated however because i created the Google Sheet and edited the code, it's being sent from my email address which is what i don't want.

 

The sheet is shared with a couple of people and i want to be able to get the sheet to send an email from a specific account that has edit access or use the email account of the user that adds the specific value to the column.

 

Is there a way to do this so the sheet doesn't send from my email address even though ownershiph of the form as been past to another account?

Posted
I do vaguely remember something about this, but don't remember the specifics so forgive me if it's incorrect but it should give you some pointers. IIRC Google sheets scripts create a GCP project associated with them. I think you need to go to the GCP management console https://console.cloud.google.com find the project in there, and have a look around, possible in IAM or perhaps in Authentication and see if you can transfer ownership.
  • Thanks 1
Posted (edited)

Share the Apps Script project with the other user (i.e. the user that you want the emails to be sent from).

Open the project as that user.

Set up the required triggers.

The relevant functions will then exectute as that user, and so emails sent programmatically by those functions will be sent from that account.

 

You can then remove any triggers that you've got set up uder your named account.

 

It's a good idea to use generic accounts for these kinds of automations, as things are then less likely to break as personnel come and go. That may also mean that the associated Sheets are owned by those generic accounts, or stored in a suitably permissioned Shared Drive.

Edited by jthompson
  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...