Mailapp.sendemail Failed
I have a script to automatically send an email. Unfortunately the script suddenly stopped working. I have changed nothing within the code. Can you help me? script: function SendEm
Solution 1:
You can try disabling Chrome V8 by going to the menu:
Run > Disable new Apps Script Runtime powered by Chrome V8.
This fixed the issue for me.
Solution 2:
For some reason, the email address is a type number. Coerce it to a string by using .toString()
MailApp.sendEmail(
address.toString()
subject,
"Esteemed,\n\nAttached is the "+subject,
{
attachments: [file.getAs(MimeType.PDF)]
}
)
Post a Comment for "Mailapp.sendemail Failed"