I am trying to create an application, which send out an SMS as soon as you receive a mail in your email account. I have an SMS API, which will take care of sending the SMS to a particular mobile number. What I am now concerned is, how do I let my application know that a mail has been received. For simplicity sake I will be using the Gmail account. So as soon as I receive a mail on my Gmail id I want a sms to be sent to my mobile, which has the senders address as well as the subject.
Any suggestions as to how can i let my application know about it?
Thanks
You have to poll Gmail from time to time. You can use IMAP or just parse the feed provided by gmail.
See this