邮件与sendmail [英] mail vs sendmail

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

问题描述

我在Codeigniter中使用Email类,并且在手册中,我看到了可以使用3种协议:邮件,sendmail和smtp。

I am using the Email class in Codeigniter, and in the manual I see that there are 3 protocols that can be used: mail, sendmail and smtp.

邮件和sendmail之间的区别是什么?

What is the dfiference between mail and sendmail? Is it true that using mail protocol will have a higher chance of having the domain marked as spam?

推荐答案

如果使用的是邮件协议,那么将域标记为垃圾邮件的可能性更高吗? * nix,机会是mail()和sendmail()相同。 mail()仍将使用sendmail,但它将传递您在php.ini中定义的所有参数。

If you're using *nix, chances are mail() and sendmail() are identical. mail() will still use sendmail, but it passes any arguments you have defined in your php.ini.

SMTP和sendmail之间的区别更大。如果您要进行大量电子邮件发送,则要使用SMTP,因为sendmail会为每个电子邮件打开一个新连接,这会增加很多开销。

The bigger difference is between SMTP and sendmail. If you are doing a lot of mass emailing you want to use SMTP because sendmail opens a new connection for each email which adds quite a bit of overhead.

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

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