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?