This article shows how to read list of email addresses, subject and message body from Google Spreadsheet and send separate emails to all of them with Google AppScript.
First, let’s see a simple example of sending single message to a particular email address.
Send Single Email
Here, AppScript’s MailApp class is used to send email. We can also use GmailApp class to do so.
[crayon-5a2d90fc49ae1798937581/]
Read data from SpreadSheet and Send Multiple Emails
In the code below, a spreadsheet is opened by its id and then the data in it is read.
To get the spreadsheed id:
– ...
↧