用PHP接收邮件的MTA [英] MTA for receiving mails, in PHP

查看:138
本文介绍了用PHP接收邮件的MTA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个库/类/代码片段等。这让我可以直接在php中收到邮件?



所以我不必在另一个进程中运行一个额外的服务器,然后不得不以某种方式发送邮件已经运行的php进程。



我一直在寻找一段时间,但php和mail或mta/smtp 在google上主要是发送邮件,或使用pop3或imap检索...





我想要做的是将消息转发到IRC频道,所以显然当IRC-bot(在PHP中)没有运行时,丢失邮件不是一件大事。然而,在收到邮件和在IRC上发布邮件之间的延迟较低。

解决方案

编写自己的SMTP服务器以充当MTA是一项重大事业。您可以查看 http://cloudmailin.com 。 CloudMailin允许您作为HTTP邮件接收传入的电子邮件,并作为MTA将邮件直接发送到您的PHP应用程序。然后,PHP应用程序可以处理电子邮件并发送到IRC频道。


is there a library/class/code-snippet/etc. that allows me to directly receive mail in php?

So that I don't have to run an additional sever in an other process and then have to somehow send the mails to the already-running php-process.

I've been looking around for a while, but results for "php" and "mail" or "mta"/"smtp" on google focus mostly on sending mail, or retrieving it using pop3 or imap...

[EDIT]

What I'm trying to do is forward the messages to an IRC-channel, so obviously when the IRC-bot (in PHP) isn't running, loosing the mails is not a big deal. However having a low latency between receiving the mail and posting it on IRC is.

解决方案

Writing your own SMTP server to act as a MTA is a big undertaking. You could take a look at http://cloudmailin.com. CloudMailin allows you to receive the incoming email as an HTTP Post and acts as the MTA sending the email direct to your PHP app. The PHP app can then process the email and send it to the IRC channel.

这篇关于用PHP接收邮件的MTA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆