MailApp.sendEmail() in Google Apps Script not sending email

Try using GmailApp.sendEmail()

// The code below will send an email with the current date and time.
var now = new Date();
GmailApp.sendEmail("[email protected]", "current time", "The time is: " + now.toString());

which is the recommended one now.

Leave a Comment