从PHP脚本发送电子邮件的最佳做法是什么? [英] What is the best practice to send emails from PHP script?

查看:145
本文介绍了从PHP脚本发送电子邮件的最佳做法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望这个问题不会太具体。但我真的需要问。我们都知道,我们不能完全阻止我们的电子邮件去垃圾邮箱吗?但我想我们可以减少那里的电子邮件数量。



到目前为止,我使用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屋!

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