sendEmail - how to determine sender mail

118 views
Skip to first unread message

Marcel Brauner

unread,
Jan 17, 2023, 4:57:47 AM1/17/23
to Google Apps Script Community
Hey folks,
I would like to create an e-mail automation for a client. I'd like the script to run daily and send a mail to all people in a specified list.

This e-mail should be sent from a specific mail. Now the question is if I write the script on my personal account. How can I change the deployment e-mail? Would I need to assign the ownership to the respective e-mail? And can this process be automated as well? Or will there be a request for permission to run the Gmail Service every time?

Thanks in advance!

Ed Sambuco

unread,
Jan 17, 2023, 7:57:56 AM1/17/23
to google-apps-sc...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/a9e9145a-fc14-443f-ba24-ba94766afda7n%40googlegroups.com.

Marcel Brauner

unread,
Jan 17, 2023, 8:06:57 AM1/17/23
to Google Apps Script Community
Not sure if that is really the same issue, is it? He wanted to deploy the script via add-on. I want to implement the code directly within the script editor of my client, but I want to make sure that it's his e-mail address that will send the e-mails. Am I wrong here?

Marcel Brauner

unread,
Jan 17, 2023, 8:08:27 AM1/17/23
to Google Apps Script Community
So when I am the creator of the script, and my email is used now. I surely can also create the script in my client's name and then his mail is shown. That should work somehow, doesnt it? 

Ed Sambuco

unread,
Jan 17, 2023, 8:33:56 AM1/17/23
to google-apps-sc...@googlegroups.com
It appears that sender email addresses from your account can only use aliases to your email, as defined.

You could have the email sent from your client's google account.

Andrew Roberts

unread,
Jan 18, 2023, 4:19:56 AM1/18/23
to google-apps-sc...@googlegroups.com
I always try to get clients to supply me with a "functional" account on their domain - like d...@domain.com - that I can use for things like this.

Asdrúbal Suárez

unread,
Jan 22, 2023, 1:27:45 PM1/22/23
to Google Apps Script Community
If the client doesn't have this "sender account", could I develop the script "text" without testing (to avoid authorization dialog) and then let the client run to make it send from account? does this work like that?

Andrew Roberts

unread,
Jan 23, 2023, 4:01:39 AM1/23/23
to google-apps-sc...@googlegroups.com
> If the client doesn't have this "sender account", could I develop the script "text" without testing (to avoid authorization dialog) and then let the client run to make it send from account? does this work like that?

Yes.

Reply all
Reply to author
Forward
0 new messages