William Zeni
unread,Dec 24, 2022, 7:47:48 AM12/24/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
Hi guys,
I searched a lot for an answer but I didn't find anything yet, I hope you will provide me with some tips.
I was wondering if there is a way to catch errors in sending email with GmailApp in google app script. In my case, I have a script that takes some mail addresses from a sheet and try to send some emails. Sometimes could happen that the recipient doesn't exist. Actually, the script sends the email and aftwer a while it sends me back a mail delivery failure. I can't figure it out if I can manage some Promise - await code to do somenthing else when the email doesn't exist.
Any suggestions?