从PHP脚本发送电子邮件的最佳做法是什么? [英] What is the best practice to send emails from PHP script?
问题描述
到目前为止,我使用PHP的内置函数 mail()
但我想还有其他方法是对的?他们是什么,这个标志的最佳做法是什么?
还有通过Google Appspot发送电子邮件的方法吗?谢谢!
托管服务可能是一个更好的方式。他们制定了程序和与ISP的关系,这将有助于您发送电子邮件,并帮助您防范垃圾邮件投诉。
我有一个邮件列表我运行的一个博客,我决定不发送一个有一个(否则合法的)故事的电子邮件,处理一个药店。我想几乎没有人会收到电子邮件,而且我会收到很多垃圾邮件投诉,只是因为药房一词。
提供有用的信息在您的电子邮件中首先。使用双重选择加入程序。这将减少您的电子邮件发送到垃圾邮件的可能性。
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 prblem?
Also is there a way to sending emails through Google Appspot? Thanks!
A hosted service may be a better way to go. They've developed procedures, and relationships with ISPs, that will help get your e-mails delivered and will help you fend off spam complaints.
I have a mailing list for a blog that I run, and I decided not to send out an e-mail that had an (otherwise legitimate) story that dealt with a pharmacy. I figured almost nobody would get the e-mail, and that I'd get a lot of spam complaints, just because of the word "pharmacy."
Provide useful information in your e-mails first and foremost. Use double opt-in procedures. That will reduce the probability of your e-mail being sent to spam.
这篇关于从PHP脚本发送电子邮件的最佳做法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!