简体   繁体   English

在Gmail收件箱到达时阅读电子邮件

[英]Read Email from Gmail inbox as it arrives

I've a drupal 7 site, and requires a functionality by which I can read emails from gmail inbox whenever they arrives. 我有一个drupal 7网站,并且需要一项功能,通过该功能,我可以随时从gmail收件箱中读取电子邮件。 Currently I'm achieving it with php imap by running it on cron. 目前,我通过在cron上运行php imap实现了它。

But I want something, which can read email from inbox as soon as it arrives. 但是我想要一些东西,它可以在收件箱中立即读取电子邮件。

Please suggest, thanks 请提出建议,谢谢

This would be a bit of a round-the-houses approach but create an account with mailgun.com. 这将是一种全面的方法,但是要使用mailgun.com创建一个帐户。 Within Mailgun you can then direct incoming emails to a URL you specify. 然后,您可以在Mailgun中将收到的电子邮件定向到您指定的URL。 Mailgun parses the email and sends it to you in a structured format. Mailgun解析电子邮件并将其以结构化格式发送给您。

You could then set up your Gmail account to send a copy of all incoming emails to your Mailgun account. 然后,您可以设置Gmail帐户,以将所有传入电子邮件的副本发送到Mailgun帐户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM