使用PHP发送电子邮件(防止将其放置在垃圾邮件文件夹中) [英] sending email with PHP (preventing from being placed in spam folder)

查看:109
本文介绍了使用PHP发送电子邮件(防止将其放置在垃圾邮件文件夹中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用PHP脚本发送电子邮件...但是,收件人正在他/她的SPAM文件夹中接收电子邮件-这不是理想的结果(我希望将其直接发送到他们的收件箱,以便我不必警告他们查看其SPAM文件夹).

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).

下面是我使用PEAR发送电子邮件的代码...我可以作哪些更改以防止电子邮件进入SPAM文件夹?

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?

推荐答案

通常,电子邮件在接收端而不是发送端被分类为垃圾邮件,而不是垃圾邮件-否则,垃圾邮件发送者只会说他们的所有邮件都不是垃圾邮件,完全违背了目的.因此,您不能仅仅强迫邮件进入发件人的收件箱.

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.

但是,您可能需要做的是查看用于发送邮件的计算机当前是否在任何垃圾邮件阻止列表中,如果是,则采取必要的步骤将其从那些阻止列表中删除.最常见的可能是 Spamhaus .

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.

这篇关于使用PHP发送电子邮件(防止将其放置在垃圾邮件文件夹中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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