What is the best way to send emails from PHP script? [2]

ぃ、小莉子 提交于 2019-12-23 11:53:17

问题


I hope this question wont be too specific. But I really need to ask. We all know that we cannot fully prevent our emails to go to spam box right? But I guess we can decrease the #of emails that goes there.

Till now, I use PHP's built-in function mail() but I guess there are other methods right? What are they and what is your best practice for this problem?

Taken from: What is the best practice to send emails from PHP script? That's over a year old, hence the new question.


回答1:


Swiftmailer

It's awesome! I've used it in all my projects with great results!

About the mail going to spam, I suggest this article




回答2:


I love PHPMailer and it is now maintained at github. If you want then you could check then go to the page at: https://github.com/Synchro/PHPMailer



来源:https://stackoverflow.com/questions/14643879/what-is-the-best-way-to-send-emails-from-php-script-2

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