Automated tools can be of great help when you want to inform people in your organization. Here we are going to take a simple example of sending out Automated Emails for Salary Increments to employees of your organization. The uses of the same can be many, for example;
To make this tool, ensure to have the following things;
Follow the below steps to create your Email Sending Tool;
Step 1: Open Google Sheets
You can access the Google Sheets by simply typing: sheets.google.com or by accessing the same using your Gmail account.
Step 2: Name the Columns
For our assumption, we are going to name our columns as follows;
Step 3: Add Details of Employees
Now start adding details of employees as shown in the image below;

Step 4: Click on Extensions
As shown in the below image, click on "Extensions" on the top ribbon, and you should be able to see "Apps Script" written. Then click on the apps script and you will be able to open Apps Script Editor.

Step 5: Copy and Paste Below Code
Add the below code to your code editor and press the save button.
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Email Sender')
.addItem('Send Emails', 'sendEmails')
.addToUi();
}
function sendEmails() {
var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var data = sheet.getDataRange().getValues();
// Loop through each row of data, assuming first row is headers
for (var i = 1; i < data.length; i++) {
var name = data[i][0];
var email = data[i][1];
var template = data[i][2];
var subject = data[i][3];
var otherData = data[i][4];
if (email && template && subject) {
var message = template.replace("{name}", name).replace("{Other Data}", otherData);
sendEmail(email, subject, message);
}
}
}
function sendEmail(email, subject, message) {
MailApp.sendEmail(email, subject, message);
}
Step 6:Click on Save & Run
As shown in the below image, click on "Run" for the first time, and Google will ask for your permission to access your account. Allow all the permissions and you should be able to see the "Email Sender" menu on your Google sheet.

Step 7: Click on the "Send Email" Button
By clicking on the "Send Emails" button, it should trigger the script and employees should receive email notifications.

You can add below template in Column C to fetch names and other data:
Hi {name},
Greetings of the Day,
This is an automated email notification for salary increase. Your new salary is: {Other Data}. For any queries, please feel free to contact,
Thanks,
HR Team
Doing this will help the script know that name is to be kept where {name} is written and other data is to be fetched where {Other Data} is placed. Therefore, you can actually fetch same data multiple time in an email as well, or you can even play around yourself with the placements of these data-fetching curly-brackets.
To get your copy of this Google sheet, you can click here.