Romain Vialard is a Google Apps Script Top Contributor. He has contributed interesting articles and blog posts about Apps Script. - Jan Kleinert
I just had to share this finding with all of you. Now you can get SMS alert or notifications for important emails at GMail.
Just follow the steps described at the below link:
https://developers.google.com/apps-script/articles/gmail_filter_sms#section1
or,
Just follow the steps below(copied from above link):
- In Google Calendar, register your mobile phone to enable SMS notifications.
- In Gmail, create a new label named 'Send text'.
- In Gmail, create a filter to apply the label 'Send text' to important emails. For example, you may want consider emails from your boss containing the word 'urgent' as important.
- Send an email to yourself to try this filter.
- In Google Docs, open a new spreadsheet.
- Choose the menu Tools > Script Editor.
- Copy and paste the following script:
function sendText() { var label = GmailApp.getUserLabelByName('Send text'); var threads = label.getThreads(); var now = new Date().getTime(); for(i in threads){ CalendarApp.createEvent('IMP- '+threads[0].getFirstMessageSubject(), new Date(now+60000), new Date(now+60000)).addSmsReminder(0); } label.removeFromThreads(threads); }
- Save the script.
- Click the Run icon. A pop-up opens asking you for your authorization to access the Gmail and Google Calendar services.
- Click the Authorize button.
- Click the Run icon again.
- After one minute, you should receive a text on your mobile device, containing the subject of the email you wrote and sent in Step 4.