将邮件以短信形式转发到手机

发布于 2024-10-07 02:03:32 字数 226 浏览 1 评论 0原文

我正在尝试创建一个应用程序,当您在电子邮件帐户中收到邮件时,该应用程序会立即发送短信。我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒中人 2024-10-14 02:03:32

您必须不时轮询 Gmail。您可以使用 IMAP 或仅解析gmail 提供的 Feed

请参阅

Gmail 有数据 API 吗?

不可以,但您可以使用 Gmail 的 Atom feed 和 AuthSub 或 OAuth 来请求
对用户未读的内容进行只读访问
消息。范围应设置为
https://mail.google.com/mail/feed/atom/

You have to poll Gmail from time to time. You can use IMAP or just parse the feed provided by gmail.

See this

Does Gmail have a Data API?

No, but you can use Gmail's Atom feed with AuthSub or OAuth to request
read-only access to a user's unread
messages. The scope should be set to
https://mail.google.com/mail/feed/atom/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文