TechTipsApp

Technology tips blog

  • Articles
    Categories
    • Tech news
    • Internet
    • Social Network
    • Google
    • Geeky Tips
    • Android
    • Windows 10
    Top Posts
    • Install Windows XP from USB
    • Install Windows 7 from USB
    • Open Facebook When It's Blocked
    • Partition Hard Drive Without Formatting
    • Reset Windows 7 Password
    • About
    • Contact
    • Privacy policy
    • Advertise
    • Terms of Conduct & Copyright Policy

Get Free SMS Alerts for New Comments at Your Blog

Tanmay Google 7 Comments

If you are the admin or a regular author of a blog, you would like to get the SMS alert for new comments at your blog post(s). Though every CMS have their own system to notify the new blog comments via email alerts, receiving them at your mobile would be more handy and advanced.
From a quite long time, I was working on this. I’ve been searching the web several times to find out the solution. Unfortunately, there was no such handy tutorial to receive SMS alerts whenever a new comment is posted on my WordPress blog.
To be frank, I found out some tutorials regarding the comment alert through SMS but all of them were not like what I was searching for. Most of those tutorials were either too complex to setup or need the help of too many third-party services. One of such tutorial caught my attention. But the draw back of that tutorial is it uses too many things like a plugin to create the pending comment RSS feed, a third party service ifttt. I am not against ifttt as it is a great service but I have a doubt that how long they will serve the SMS service for free.
And here we go. We can setup the SMS alert for new blog comments through Gmail and Google calendar. Nothing worth to say that Google is one of the most trusted companies in the web. What you should have to have your profile email address as a Gmail address.

Getting Started

Enable free SMS alert at Google calendar

1. Login to Google calendar with the same Gmail address that you have into your WordPress profile.
2. Click on the Gear sign from the top-right corner of the page and select “Settings” from the drop-down.

3. Click on the “Mobile Setup” link.

4. By default, the Phone notification is disabled. To enable the service, select your country (leave if it is set by default), give your mobile phone number (without any ‘0’ or country code before the number; Google will automatically select that for your country) and then tap the “Send Verification Code” button. Once you do that, Google will send the verification code at your mobile. Grab the code and input that at the proper place and tap the “Finish Setup” button.

Press the Save button and you are done with the Google Calendar setup.

Setup your Gmail account for the SMS alert for new blog comments

Now, it is time to prepare your Gmail account for receiving the SMS alerts for the blog comments.
1. Open the Gmail account and create a label as “WordPress comments“. You can do that from the “Settings (Gear icon at the top-right corner of the page) > Labels > Create new label”.

2. Now flip to the “Filter” tab under the “Settings” page and click on “Create a new filter” link from the bottom of the page.

3. At the filter setup box put “wordpress@yoursite.com” at the “From” field (replace yoursite.com with your own blog address) and click the “Create filter with this search” link.

4. Now check the box labeled as “Apply the label:” and select “WordPress comments” from the drop-down box.

Finally, click the “Create Filter” button.
That’s all with your setup regarding the Gmail account.

Preparing the script

After you are ready with setting up Google Calendar and Gmail, you will have to go through a simple coding part. Don’t worry!! We’ll guide you and it’s not tough as much as you are guessing.
Open Google Docs and create a new spreadsheet using the “Create” button and follow the steps below:
1. Select Tools > Script editor from the menu.

2. The “Google Apps Script” box opens. Choose the “Blank Project” option.

The workspace opens. Delete every thing from the code.gs page.
3. Now copy and paste the following code.

function sendSmsAlerts() {
var label = GmailApp.getUserLabelByName('WordPress comments');
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);
}

[Reference]
4. Save the project with suitable name.
5. Now click on the Run icon. As long as you do that, an authorization request box will appear.

Authorize it by clicking the right button. Another authorization page will appear asking you to grant the access of your Gmail account by the code you have written. Simply, grant it and press the “Close” button.

6. Again, return to the Script Editor and select Resources > Current script’s triggers…

The “Current project’s triggers” dialog box opens. Click the link as shown into the picture below.

7. Make sure that the function sendSmsAlerts and the event “Time-driven” are selected.

8. Choose the triggering time according to your need. You can set the triggering time every hour, every minutes etc.
9. Press the “Save” button and you’re done!
You’ll start to receive Free SMS Alert for New Blog Comments.

How does the total system work

Whenever a reader of your blog submit any comments at your posts through the comment for of your WordPress blog, WordPress sends an email alert to the email address of the admin as well as the author of the post. Now the Gmail filter, you’ve created earlier filters those emails and apply the aforementioned label.
Now the script is running with your account and simultaneously checking for the emails with that label. If it finds any match, it immediately send the SMS alert through Google Calendar.
Conclusion:
Not only the blog comments but also you can setup SMS alerts for contact form submission, submission of articles for review by the authors etc.
I found this way very helpful. What about you? Drop your words at the comment section.

Post Tags: Blog, Gmail, SMS, WordPress
Similar Articles from This Blog
Introducing SMS Organizer by Microsoft is the Best SMS App
Introducing SMS Organizer by Microsoft is the Best SMS App
Track Sent Email When Read By Recipient – Tutorial For Dummies
Track Sent Email When Read By Recipient – Tutorial For Dummies
Manage Multiple Email Accounts From one Gmail Account
Manage Multiple Email Accounts From one Gmail Account
How to Check if Your Facebook or Gmail Account is Hacked
How to Check if Your Facebook or Gmail Account is Hacked
How to Send New Gmail Attachment to Any Cloud Storage
How to Send New Gmail Attachment to Any Cloud Storage
Install Contact Page in WordPress Blog Without Any Plugin
Install Contact Page in WordPress Blog Without Any Plugin

Comments

  1. kumar :

    The best way to get gmail on sms is to use 3rd party service called weekwill.com. I have been using it since long time now and its just works perfect for me. Whenever I get email in my gmail inbox, I get sms instantly. Its great. It doesn’t require internet connection in your phone or any 3G. Try it.

    Reply
  2. Bobby :

    Is there any option to keep this feature to the sites which is related blogger platform?

    Reply
  3. Tanmay :

    @Bobby: Sure, you can do this at your Blogger platform also. Just make sure about the email address by which you get the comment notifications at your mail box and create the filter accordingly.

    Reply
  4. haresh :

    Hi,
    Very nice trick. Thank you. I have created this alerts. But I keep on receiving SMS from Google Calander. I selected trigger for every minute. For one comment I am getting so many SMS. Is there any way to receive one SMS per one comment?
    My phone inbox is full. Still I keep on receiving SMS – just one new comment and these many SMS. Please guide. What to do now?
    Thanks in advance for your help.

    Reply
    • Tanmay Ahmed :

      @Haresh: Thanks for leaving your comment here. We will be investigating your issue and will post the result as a reply of this comments. Stay tuned.

      Reply
  5. ananthalakshmi :

    We have tried SMS alerts for form submission and it works fine.

    Reply
  6. sruthi :

    Thank you for this simple trick shared with us.It is really nice based on that i am created alerts.

    Reply

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

About Us

Tech Tips App is a technology blog, looking forward to broaden the mental horizons of technical geeks round the web. Striving hard to quench your technical thirst, we have put our best efforts on the line of exhaust to satisfy your versatile technical vocabulary.

Recently Published

  1. Partitioning Hard Drive in Windows 7 Without Formatting
  2. How to Find My Contacts on Google Map
  3. Introducing SMS Organizer by Microsoft is the Best SMS App
  4. How to Fix Windows Update When It Gets Stuck
  5. How to Get Rid of Windows 10 Automatic Repair Loop [Solved]
  6. Best Antivirus for Windows 10 (Is Windows Defender Good Enough?)
  7. Best Facebook Messenger Bots to Get more out of Messenger
  8. How to Fax a Document From Your Smartphone
  9. Top Social Media Platforms You Should Always Know About
  10. Bitcoin vs Altcoin: Where to Invest? – Guide For Dummies

© 2021 Tech Tips App All Rights Reserved  Post Sitemap