PHP电子邮件发送到垃圾邮件 [英] PHP e-mail to spam

查看:175
本文介绍了PHP电子邮件发送到垃圾邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试发送新的注册用户进行电子邮件验证(PHP),但是我不明白,为什么会将电子邮件发送给垃圾邮件,我已经查出了类似的问题,所有答案都是关于标题, p>

看起来有点复杂,我知道这些标题,他们如何被验证,

由发件人网站?让我说我作为user@google.com发送,实际的服务器域是domain.com,怎么知道?它是垃圾邮件的主要原因之一吗?

我正在使用VPS,它与它有什么关系吗?

我只是想了解清楚/简单的原因,为什么电子邮件被检查为垃圾邮件?


如果我从服务器IP而不是域本身发送如果

解决方案

1)检查标题。您可以使用任何电子邮件发送库,如PHPMailer(http://code.google.com/a/apache-extras.org/p/phpmailer/wiki/PHPMailer#Documentation_and_Resources)



2)检查托管服务器。如果您正在使用共享主机,那么最有可能的是它已被黑名单的电子邮件域名。


I'm trying to email new registered users for email verification (PHP) but i don't get it, why would an email be sent to SPAM, i already checked out similar questions and all answers are about Headers,

It seems a bit complicated for me to get known to those headers and how are they being verified,
By sender website ? lets say i sent as user@google.com and the actual server domain is domain.com, how would it know? and is it one of the main reasons why it goes to spam ?
I am using VPS, does it has anything to do with it ?
I'm just trying to understand the clear/simple reasons of why would an email be checked as spam

and what if i sent from the server IP and not the domain itself

解决方案

1) Check headers. You could use any email sending library such as PHPMailer (http://code.google.com/a/apache-extras.org/p/phpmailer/wiki/PHPMailer#Documentation_and_Resources)

2) Check hosting server. If your is using shared hosting then most probably it has been blacklisted by the email domain.

这篇关于PHP电子邮件发送到垃圾邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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