使用PHP发送电子邮件(防止放入垃圾邮件文件夹)
【腾讯云】亏本大甩卖,服务器4核16G 1年370元(带宽12M,系统盘120GB SSD盘,月流量2000GB)!!!!!!
云产品 配置 价格
服务器 1核2G,带宽5M,系统盘50GB SSD盘,月流量500GB 38元/年
MySQL 1核1G 19元/年
服务器 16核32G,带宽18M,系统盘250GB SSD盘,月流量5000GB 1197元/年
点我进入腾讯云,查看更多详情

i am trying to send email using PHP scripts... however, the recipient is receiving it in his/her SPAM folder -this is not the desired result (I would like to have it sent directly to their inbox so that I don't have to warn them to look in their SPAM folder).

below is the code I use to send the email using PEAR... what changes can I make to prevent the emails from going into the SPAM folder?

send("test.user@gmail.com", $headers, $body); ?>

#0

In general, email is classified as spam or not spam on the receiving end, not the sending end - otherwise, spammers would simply say that all of their messages aren't spam, completely defeating the purpose. Thus, you can't just force a message to go to a sender's inbox.

However, what you may need to do is see if the machine that you're using to send mail is currently listed on any spam blocklists, and if so, take the necessary steps to remove it from those blocklists. The most common is probably Spamhaus.

#1

How to increase the chance that the receiver doesn't mark an email as spam has been discussed quite some times here on SO. E.g.

How do you make sure email you send programmatically is not automatically marked as spam?

But there may be some tips specific to pear's Mail package on how to implement these steps (so I wouldn't consider this a duplicate ...yet).

#2

You can purchase a dedicated IP address for your domain to patch this problem almost. After installing a dedicated static IP,all your email will have unique permanent sender ID...

GMail and other top mail services will list your email in Inbox...But yahoo and some other won't mind it....

推荐文章

范围附近的rails地理编码器

范围附近的rails地理编码器

推荐文章

我可以从贝宝标准得到订单确认,而不依赖于客户点击“返回网站”从贝宝?

我可以从贝宝标准得到订单确认,而不依赖于客户点击“返回网站”从贝宝?

推荐文章

标记群集程序-合并标记信息窗口内容

标记群集程序-合并标记信息窗口内容

推荐文章

jquery在同一个类上设置不同的位置

jquery在同一个类上设置不同的位置

推荐文章

在PHP中将会话值放入varrible中

在PHP中将会话值放入varrible中

推荐文章

如何在XSLT中使用Xquery在XML中查找元素

如何在XSLT中使用Xquery在XML中查找元素

推荐文章

如果浏览器窗口小于给定大小,如何使用Javascript隐藏一些ID元素?

如果浏览器窗口小于给定大小,如何使用Javascript隐藏一些ID元素?

推荐文章

如何使用Ant找出当前的平台

如何使用Ant找出当前的平台

推荐文章

如何使用Ruby和Nokogiri解析LI/DL/DD标记结构?

如何使用Ruby和Nokogiri解析LI/DL/DD标记结构?

推荐文章

是否需要在编译期间添加一个可重入宏,以使errno线程安全?

是否需要在编译期间添加一个可重入宏,以使errno线程安全?

推荐文章

Facebook连接问题

Facebook连接问题

推荐文章

Wordpress-我应该在模板或页面内容中存储html表单吗?

Wordpress-我应该在模板或页面内容中存储html表单吗?

推荐文章

如何设置表适配器的连接字符串(设置为动态设置的字符串)

如何设置表适配器的连接字符串(设置为动态设置的字符串)

推荐文章

Magento属性-禁用HTML条带输出

Magento属性-禁用HTML条带输出

推荐文章

从Excel工作表填充Access表

从Excel工作表填充Access表

推荐文章

VBS与正则表达式

VBS与正则表达式