检索电子邮件并将其存储在 MySQL 中
如何从电子邮件服务器检索电子邮件并将其放入 mysql 数据库中?
理想地坚持使用 php。但如果需要的话可以合并另一种语言。
How would one retrieve emails from an email server and put them into a mysql database?
Idealistically sticking with php. But could incorporate another language if needed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的,有。
如果您使用带有 cPanel 的托管解决方案。您应该看看
http://www.webmasters-central.com/article-blog/tutorials/email-pipe-tutorial-setting-up-email-piping/
http://devtrench.com/posts/simple-email-logger- using-cpanels-pipe-forwarder
(对于 php 脚本很有用)
如果您使用的是 Postfix 解决方案,请查看
https://serverfault.com/questions/ 258469/如何配置-postfix-to-pipe-all-incoming-email-to-a-script
http://evolt.org/incoming_mail_and_php?from=50
您应该查找“将电子邮件传送到 php” ”或“将电子邮件传送到 python”或您在谷歌上使用的语言。
无论如何,使用 PHP 或 Python 您可以实现这一目标,将收到的电子邮件发送到数据库。
Yes, there's.
If you're using a hosting solution with cPanel. You should take a look at
http://www.webmasters-central.com/article-blog/tutorials/email-pipe-tutorial-setting-up-email-piping/
http://devtrench.com/posts/simple-email-logger-using-cpanels-pipe-forwarder
(useful for php scripts)
If you're using a Postfix solution take a look at
https://serverfault.com/questions/258469/how-to-configure-postfix-to-pipe-all-incoming-email-to-a-script
http://evolt.org/incoming_mail_and_php?from=50
You should look for "piping email to php" or "piping email to python" or what the language you're using on google.
Anyway, with PHP or Python you can achieve that, getting your incoming email to a DB.
这是整个课程,可以帮助您做到这一点,我已经使用了它及其工作
http://www.phpclasses.org/package/3324-PHP-Retrieve-e-mail-messages-into-a-MySQL-database.html
您还可以从以下位置获得帮助
PHP 电子邮件到 mysql 数据库的问题从服务器删除电子邮件
请参阅他使用的代码,它是由 imap_open 完成的也请参阅此
http://php.net/manual/en/function.imap-open.php
Here is the whole class which can help you do this i have used it and its working
http://www.phpclasses.org/package/3324-PHP-Retrieve-e-mail-messages-into-a-MySQL-database.html
further you can get help from
PHP email to mysql database issue when not deleting emails from server
see the code he used, its is done by imap_open also see this
http://php.net/manual/en/function.imap-open.php