1
votes

I noticed that GmailApp.sendEmail as well as MailApp.sendEmail is not able to send emails if the recipient email contains a '+' sign.

Gmail supports dynamic alias by using '+' in emails like this: [email protected], however both these classes are not able to send mails to such addresses.

For example, this works:

GmailApp.sendEmail('[email protected]', 'subject', 'body');
MailApp.sendEmail('[email protected]', 'subject', 'body');

...while this doesn't:

GmailApp.sendEmail('[email protected]', 'subject', 'body');
MailApp.sendEmail('[email protected]', 'subject', 'body');

Has anyone come across this issue?

1

1 Answers

1
votes

This is not really an issue. I was trying to send to self with + in the email and these were not showing up in Inbox. These showed up only in Send folder which created this confusion.