将邮件以短信形式转发到手机
我正在尝试创建一个应用程序,当您在电子邮件帐户中收到邮件时,该应用程序会立即发送短信。我有一个 SMS API,它将负责将 SMS 发送到特定的手机号码。我现在关心的是,如何让我的申请知道邮件已收到。为了简单起见,我将使用 Gmail 帐户。因此,一旦我通过 Gmail ID 收到邮件,我就希望将一条短信发送到我的手机上,其中包含发件人地址以及主题。
关于如何让我的应用程序知道这一点有什么建议吗?
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须不时轮询 Gmail。您可以使用 IMAP 或仅解析gmail 提供的 Feed。
请参阅此
You have to poll Gmail from time to time. You can use IMAP or just parse the feed provided by gmail.
See this