Get Free SMS Alerts for New and Important Emails on Gmail with Google Docs
Consider a situation you are away from your computer and in travel waiting for an important email which you need to reply in a timely manner and all you have with you is your mobile-phone. Instead of constantly checking your inbox you can setup SMS alerts which notify you on receiving emails. Recently we saw how to use Google Docs to monitor multiple sites and send free alerts when they are down. In this article we are going to see how to turn Google Docs into Email Notifier to send you free SMS alerts for important and new incoming emails on Gmail.
There are already some ways to achieve this using third-party services or using free SMS gateway by setting up email forwarding. But they do have restrictions and limitations. E.g.: Country based limitations. Sometimes they don’t work at all. Of course privacy is another important concern. I am sure many of us are in need of this SMS alert feature, number of queries raised in various Google forums are a proof for this. So, let’s create our own email notifier service with Google Docs.
Below trick is pretty simple it just takes at the max of 5 minutes to setup. It only uses services provided by Google, no third-party services are involved. Importantly it works in almost all countries, free of cost.
How does it work?
1. Creating a filter condition and linking it to a label in Gmail.
2. Google Docs periodically monitors the label thread for new incoming emails and creates a Google Calendar SMS reminder on receiving it.
3. Google Calendar sends you a SMS alert containing the subject of your message.
So lets see how to set it up. Might look lengthy but it’s very easy.
Get Free SMS Alerts for New and Important Emails on Gmail with Google Docs
1. Setting up Google Calendar to make SMS as default reminder channel
You can follow the instructions on how to configure for Google Calendar for phone notification from our previous article.
2. Creating filter condition and linking to Label in Gmail
- Login to Gmail.
- Click on the Gears icon on the top right and select Settings.
- Go to Labels tab.
- Scroll down and click Create new label.
- Give label name as sendsms and click create. Now label creation is done.
- Now click on filter tab.
- Click Create a new filter.
- Click Create filter with this search.
- Now check Apply the label and select sendsms from the drop down. Finally click create filter.
If you want SMS alerts only for emails from some important person such as your boss. Set the filter condition using ‘from’ field.
If you want SMS alerts for all incoming emails. Set the ‘Has the words’ field with is:inbox
3. Configuring Google Docs To Poll for New Incoming Emails
1. Login to Google Docs.
2. Click here to make copy of the spreadsheet. Click Yes, make a copy.
3. Now select Tools-> Script Editor. Then Resources-> Current script’s triggers.
4. Select click here to add one. Under events select Time-Driven then minutes timer and every minute and save it.
5. Click Authorize and then grant access. Now click close and save the trigger again. That’s it.
2. Click here to make copy of the spreadsheet. Click Yes, make a copy.
3. Now select Tools-> Script Editor. Then Resources-> Current script’s triggers.
4. Select click here to add one. Under events select Time-Driven then minutes timer and every minute and save it.
5. Click Authorize and then grant access. Now click close and save the trigger again. That’s it.
So, now on Google Docs will be polling your Gmail Account every minute for new incoming messages through the label you have created and will send a free SMS alerts as and when they arrive.
Thanks Romain Vialard for the original script.
Never miss any important emails be informed as and when they come to your inbox. Have trouble in setting this up? Do feel free do drop in your queries and problems.
[Update: 03-Mar-2014]
Disclaimer:
– Google has limits on number of sms reminders one can receive per day. Once it’s reached you will not be receiving alerts.
– Preferably set the timer interval to higher value (at-least 30 min or more) because frequent event creation might break calendar functionality.
There are many free website monitoring sites that lets us do this job. But they are only trial version or come with some limitations. For example Pingdom lets you track only one website and offers only 20 SMS alerts for a free account. So why not build your own website monitoring service? Google Docs helps you do this. I recently came across an article in Digital Inspiration where Amit had demonstrated how to use Google Docs to monitor your website and get email alerts for free. So I thought why not extend the script to allow Google Docs to send you free SMS alerts too when your site is down. Also the current script was supporting the ability to monitor only single site, you had to create mutiple copies to track many sites. So I have also updated the script to support monitoring of many sites with a single doc itself.
You might also like:
Get free SMS alerts for new and important emails on Gmail with Google Docs
Get free SMS alerts for new and important emails on Gmail with Google Docs
How to Use Google Docs to Monitor Multiple Sites and Get Free Downtime SMS Alerts
Google Calendar will be aiding Google Docs to send free SMS notification when site is down. Whereas the actual monitoring is done by Google Docs.
Configuring Google Calendar for Phone Notification
1. Log in to Google Calendar
2. Click on the Gears icon on the top right and select settings.
3. Now click on the Mobile Setup tab.
4. Select Country, enter your Phone number and now click Send Verification Code. Now enter the code you got on your mobile and verify your number. If you don’t receive the code check if your carriers fall under supported mobile providers.
5. Now in Notifications select SMS as your default notification channel and save it.
Now you are done with the Google Calendar configuration part. All that is left is to copy the Google Docs provided below and set the polling frequencies.
Configuring Google Docs To Monitor your Sites
1. Log in to Google Docs
2. Click here to make copy of the Google Spreadsheet.
3. In F3 to F6 cell you can enter the URL of the sites you want to monitor. Currently supports up to four sites. You can tweak the code to support many more.
4. In cell F8 enter your Email Address into which you want to get alerts. Entering phone number is not required as it will be picked up from Google Calendar.
5. Now select Tools-> Script editor.
6. Select Resources-> Current script’s triggers. Under Run select “isMySiteDown” then in Event select Time-Driven, Minutes timer and Every minute and save it. Now click the Authorize button and then Grant Access. Save the trigger again.
Now on Google Docs will be polling and monitoring all the sites you have entered every minute. You will be getting SMS alert, Email alert when any of the mentioned site is DOWN, the exception/error details will be logged in ‘C’ column and URL will be logged in ‘B’ column helping you identify which site was actually down. Similarly you will be getting alerts once the site which was DOWN is UP again.
Comments
Post a Comment