mail vs sendmail

百般思念 提交于 2019-12-23 08:02:22

问题


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.

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?


回答1:


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.

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.



来源:https://stackoverflow.com/questions/10862082/mail-vs-sendmail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!