1 | initial version |
You can use the following method to send an email via Google Apps Script through a Google Spreadsheet:
In the script editor, write the following code to send an email:
function sendEmail() { var recipient = "email@example.com"; var subject = "Test Email"; var body = "This is a test email."; MailApp.sendEmail(recipient, subject, body); }
Make sure to replace the example email address with the actual email address you want to send the email to.
Save the script and then go back to your spreadsheet.
Note: Before you can send emails using Google Apps Script, you need to grant permission for the script to access your Gmail account.