A: To change how your name appears in the inbox of the recipient when using Google Apps Script, you can use the setName method of the GmailApp class. This method allows you to specify a custom name that will be used when sending emails from your Gmail account.
Here is an example of how you can use this method in your Google Apps Script code:
After running this code, any emails you send from your Gmail account will use the specified name in the recipient's inbox. Note that this name will only be used for emails sent using Google Apps Script. It will not affect the name that is displayed in the recipient's inbox for emails sent using other methods (e.g., the Gmail web interface or a mobile device).
If you want to revert back to using your default Gmail name, you can use the resetName method of the GmailApp class. This method will reset the name that is used for your emails to your default Gmail name. Here is an example of how you can use this method in your Google Apps Script code:
After running this code, any emails you send from your Gmail account will use your default Gmail name in the recipient's inbox.
--
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/c46e7f37-7f5b-46c2-aab1-9ae5aba032cdn%40googlegroups.com.