为什么我的电子邮件仍然被视为垃圾邮件?使用 mail() 函数 [英] Why is my e-mail still being picked up as spam? Using mail() function

查看:35
本文介绍了为什么我的电子邮件仍然被视为垃圾邮件?使用 mail() 函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对此感到非常恼火,因为无论垃圾邮件过滤器似乎仍然将我的网站自动回复器称为垃圾邮件.我已经正确设置了所有标题,这就是我目前所拥有的!

I've been getting very annoyed at this as no matter what it seems spam filters are still calling my websites auto responder as spam. I've set all my headers correctly and this is what I have so far!

$headers = "From: Name<name@website.com>
"
        ."Return-Path: Name<name@website.com>
"
        ."Reply-To: Name<name@website.com>
"
        ."Message-ID: <". time() .rand(1,1000). "@".$_SERVER['SERVER_NAME'].">
"
        ."X-Mailer: PHP v".phpversion()."
"
        ."MIME-Version: 1.0
"
        ."Content-Type: text/plain; charset=iso-8859-1
";

        @mail($_POST['email'], "Subject", "Message", $headers);

请帮我解决这个问题!:)

Please help me on this one! :)

这是从我的共享托管服务提供商服务器发送的.

This is being sent from my shared hosting providers servers.

如果我添加如下第 5 个参数会有帮助吗?

would it help if I added the 5th parameter as below?

"-f email@website.com"

"-f email@website.com"

推荐答案

你读过这个吗?

所以你想发送一些电子邮件(通过代码)

简而言之:

  1. 确保发送电子邮件的计算机具有反向 PTR 记录
  2. 在您的 DNS 和代码中配置域密钥识别邮件
  3. 在您的 DNS 中设置 SenderID 记录

这篇关于为什么我的电子邮件仍然被视为垃圾邮件?使用 mail() 函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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