简体   繁体   English

有人知道在哪里获取smtp连接守护程序吗?

[英]Does anybody know where to get a smtp connection Daemon?

Here's the thing. 就是这个 I need a daemon running on the server which basically will open an smtp connection, then it will expect calls to the process to send e-mails through the opened connection. 我需要一个在服务器上运行的守护程序,该守护程序基本上将打开一个smtp连接,然后它将期望对该进程的调用通过打开的连接发送电子邮件。

This is to avoid connecting to the smtp every time, instead I can receive multiple calls to the process but connection only one time. 这是为了避免每次都连接到smtp,相反,我可以收到对该进程的多次调用,但只能连接一次。

By the way, the SMTP always authenticates with the same user and password, no need of a different authentication by each user. 顺便说一句,SMTP始终使用相同的用户名和密码进行身份验证,而无需每个用户进行不同的身份验证。

Does this make any sense? 这有道理吗?

You could use a php mailing class that connects only once to the smtp server and uses this connection for all the emails that are sent during the scripts execution. 您可以使用仅一次连接到smtp服务器的php邮件类,并将此连接用于脚本执行期间发送的所有电子邮件。 If I'm not mistaken pear php will do that. 如果我没记错的话, pear php会做到这一点。

I think you should seriously consider using an existing MTA which can do authentication and queuing, then just send the messages directly to there and let it relay. 我认为您应该认真考虑使用可以进行身份​​验证和排队的现有MTA,然后将消息直接发送到那里并让其中继。

Use (for example), sendmail. 使用(例如)sendmail。 This is not a recommendation just an example. 这不是建议,只是一个例子。 Make your own choice. 自行选择。

Making a custom server to do all of this is fraught with problems and will definitely have interoperability problems (because SMTP is such a bag of crap) 制作自定义服务器来完成所有这些工作会遇到很多问题,并且肯定会存在互操作性问题(因为SMTP简直就是一堆垃圾)

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

相关问题 有人知道第一次调用magento中的运送方法的时间和地点吗 - does anybody know when and where the shipping method in magento is first called 有人知道PHP的默认Exception代码吗? - Does anybody know the default Exception codes for PHP? 有人知道如何在运行的自创页面上获得自定义 woocommerce orders.php 吗? - Does anybody know how to get a custom woocommerce orders.php on a self created page running? 有谁知道在哪里可以找到用于本地测试的ISP SMTP服务器地址? - Does any body know where I can find my ISP SMTP server address for my localhost testing? 有人知道如何根据字符串名称更改颜色吗? - Does anybody know how to change the color depending on stringname? 有人知道Uplodify发生了什么吗? 它只是停止工作 - Does anybody know what happened to Uplodify? It just stopped working 有人知道如何在Phalanger中显示其他Intellisense吗? - Does anybody know how to display additional Intellisense in Phalanger? download.php如何知道从哪里获得“ title”? - How does the download.php know where to get 'title'? 有人知道要添加CSS的文件吗 <link> 和JS <style> tags to in Jetbox v2.1? - Does anybody know which file to add CSS <link> and JS <style> tags to in Jetbox v2.1? PHP Date函数跳过二月。 有人知道这个日期错误的解决方法吗? - PHP Date function skipping February. Does anybody know of a work around for this date bug?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM