Reputation: 1
Does GAS have the functionality to set the default Send-As address of a user to a sub-domain of a primary GApps domain, if the script is authorised by a Super Admin on the domain?
I have a signature script that's authorised using a token by a Super Admin on the domain, and was hoping something similar could be done to set the Send-As for users as they join.
We have several sub-domains, and users need their Send-As set related to the country they're in.
Upvotes: 0
Views: 94
Reputation: 7957
If you are using MailApp.sendEmail()
, you do not have a 'send as' option in Google Apps Script. However, you can set a combination of the name
and replyTo
options to simulate a 'Send As' option.
If you use GmailApp.sendEmail()
function, you have an additional option called from
which you can use to specify the from email address
Upvotes: 1