Friday, March 19, 2010

Automatic SMS updates for new mails on an IMAP account.

I recently made a script that sends instant notifications to my mobile whenever I receive a new mail on any IMAP account.

I am sharing this script because it can help you learn how to retrieve new mails from an IMAP server and also send sms notifications.

The script is configured with webmail account of our institute and the sms is sent to my mobile. You can open the *.py file in any text editor and change the variable values to edit it according to your needs.

You can download the source code here
Just make the two scrips executable & send run
If you want to have an idea as to how I made the sms script, take a look at my previous post. 
If you have any issues, leave comments..
Also, if the sms is not sent, checkout the method I wrote in this post..


  1. hello blogger,
    I have visited your blog while searching for something in google. I saw your posts useful and i just want to know on how to add free sms code to my blog, just like . If u know please mail me at


  2. code is runing properly,but always shows check internet connection