<tfoot id='smrPN'></tfoot>
    <legend id='smrPN'><style id='smrPN'><dir id='smrPN'><q id='smrPN'></q></dir></style></legend>

    <i id='smrPN'><tr id='smrPN'><dt id='smrPN'><q id='smrPN'><span id='smrPN'><b id='smrPN'><form id='smrPN'><ins id='smrPN'></ins><ul id='smrPN'></ul><sub id='smrPN'></sub></form><legend id='smrPN'></legend><bdo id='smrPN'><pre id='smrPN'><center id='smrPN'></center></pre></bdo></b><th id='smrPN'></th></span></q></dt></tr></i><div id='smrPN'><tfoot id='smrPN'></tfoot><dl id='smrPN'><fieldset id='smrPN'></fieldset></dl></div>

        <bdo id='smrPN'></bdo><ul id='smrPN'></ul>
    1. <small id='smrPN'></small><noframes id='smrPN'>

    2. php mail() 去垃圾邮件,但是当通过 SMTP 服务器发送时它工作正常吗?

      时间:2024-08-23
      <i id='vF3Un'><tr id='vF3Un'><dt id='vF3Un'><q id='vF3Un'><span id='vF3Un'><b id='vF3Un'><form id='vF3Un'><ins id='vF3Un'></ins><ul id='vF3Un'></ul><sub id='vF3Un'></sub></form><legend id='vF3Un'></legend><bdo id='vF3Un'><pre id='vF3Un'><center id='vF3Un'></center></pre></bdo></b><th id='vF3Un'></th></span></q></dt></tr></i><div id='vF3Un'><tfoot id='vF3Un'></tfoot><dl id='vF3Un'><fieldset id='vF3Un'></fieldset></dl></div>
        <bdo id='vF3Un'></bdo><ul id='vF3Un'></ul>
        <legend id='vF3Un'><style id='vF3Un'><dir id='vF3Un'><q id='vF3Un'></q></dir></style></legend>

              <tbody id='vF3Un'></tbody>

              <small id='vF3Un'></small><noframes id='vF3Un'>

              <tfoot id='vF3Un'></tfoot>
              • 本文介绍了php mail() 去垃圾邮件,但是当通过 SMTP 服务器发送时它工作正常吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我目前正在设置我的网络服务器,以便我可以通过 PHP 代码发送电子邮件,我遇到的问题是通过 php mail() 发送的电子邮件总是发送到我的 gmail 垃圾邮件,就像我通过 SMTP 服务器发送电子邮件一样与 Gmail 相同的 VPS 不会发送到垃圾邮件.

                他们的任何人都可以提供帮助吗?

                更新:

                通过 Ryan@Ryanteck.org.uk & 发送Noreply@Mc-Serverlist.co.uk 对于 PHP Mail()(ryan@ryanteck.org.uk 也是如此)

                当通过 PHP Mail() 或 Webmin 电子邮件发送到垃圾邮件时

                当通过 SMTP 服务器通过 Gmail 发送时,它发送正常

                PHP 邮件原始消息:http://pastebin.com/TP2UfDP7(这是 Noreply@Mc-Serverlist.co.uk)p>

                Webmin 电子邮件系统:http://pastebin.com/2VWvDd7v

                Gmail SMTP:http://pastebin.com/wgewGnmk

                解决方案

                您的 vps 没有配置 rDNS,HELO 指向不同的 ip.HELO 中的不一致和缺少 rDNS 会触发许多垃圾邮件过滤器.

                <块引用>

                收到:来自 ryanteck.org.uk ([95.154.250.75])

                主机 75.250.154.95.in-addr.arpa.未找到:3(NXDOMAIN)

                ryanteck.org.uk 的地址为 95.154.250.165

                设置一个 HELO 主机名,其 A-Record 指向您的 VPS,并将 rDNS (PTR) 配置为相同的主机名.

                例子:

                • 创建一个新的 A-Record 'vps.ryanteck.org.uk 95.154.250.75'
                • 将 HELO 设置为vps.ryanteck.org.uk"
                • 将 75.250.154.95 的反向 DNS (PTR) 设置为 vps.ryanteck.org.uk

                您的发件人域也有一些奇怪的TXT".记录:

                dig txt mc-serverlist.co.uk +short95.154.250.165"挖掘 txt ryanteck.org.uk +short95.154.250.165"

                您可能希望将这些更改为格式正确的 SPF 记录,例如.

                v=spf1 ip4:95.154.250.165 ip4:95.154.250.75 ~all

                I am currently setting up my webserver so then i can send emails via PHP Code, the problem i have is that the emails sent via php mail() always send to my gmail spam where as when im sending emails via the SMTP Server the same VPS has on it on Gmail it dont send to spam.

                Is their anyone that can help with this?

                Updates:

                Sending Via Ryan@Ryanteck.org.uk & Noreply@Mc-Serverlist.co.uk For PHP Mail() (Same happens with ryan@ryanteck.org.uk)

                When Sent Via PHP Mail() Or Webmin Email It Sends To Spam

                When Sent Via SMTP Server Via Gmail it sends ok

                PHP Mail Raw Message : http://pastebin.com/TP2UfDP7 (This is the Noreply@Mc-Serverlist.co.uk)

                Webmin Email System : http://pastebin.com/2VWvDd7v

                Gmail SMTP : http://pastebin.com/wgewGnmk

                解决方案

                Your vps doesn't have rDNS configured and the HELO points to a different ip. inconsistencies in HELO and missing rDNS trigger many spamfilters.

                Received: from ryanteck.org.uk ([95.154.250.75])

                Host 75.250.154.95.in-addr.arpa. not found: 3(NXDOMAIN)

                ryanteck.org.uk has address 95.154.250.165

                Set a HELO Hostname whose A-Record points back to your VPS and configure the rDNS (PTR) to the same hostname.

                Example:

                • Create a new A-Record 'vps.ryanteck.org.uk 95.154.250.75'
                • Set the HELO to 'vps.ryanteck.org.uk'
                • Set the reverse DNS (PTR) for 75.250.154.95 to vps.ryanteck.org.uk

                Also your senderdomains have somewhat strange "TXT" records:

                dig txt mc-serverlist.co.uk +short 
                "95.154.250.165"
                dig txt ryanteck.org.uk +short
                "95.154.250.165"
                

                you may want to change these into correctly formatted SPF records, eg.

                v=spf1 ip4:95.154.250.165 ip4:95.154.250.75 ~all
                

                这篇关于php mail() 去垃圾邮件,但是当通过 SMTP 服务器发送时它工作正常吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:在 Linux 上使用带有 SMTP 服务器的默认 PHP 邮件功能 下一篇:PHP 群发邮件

                相关文章

                • <bdo id='pNldk'></bdo><ul id='pNldk'></ul>
              • <tfoot id='pNldk'></tfoot>

                  1. <legend id='pNldk'><style id='pNldk'><dir id='pNldk'><q id='pNldk'></q></dir></style></legend>

                    <i id='pNldk'><tr id='pNldk'><dt id='pNldk'><q id='pNldk'><span id='pNldk'><b id='pNldk'><form id='pNldk'><ins id='pNldk'></ins><ul id='pNldk'></ul><sub id='pNldk'></sub></form><legend id='pNldk'></legend><bdo id='pNldk'><pre id='pNldk'><center id='pNldk'></center></pre></bdo></b><th id='pNldk'></th></span></q></dt></tr></i><div id='pNldk'><tfoot id='pNldk'></tfoot><dl id='pNldk'><fieldset id='pNldk'></fieldset></dl></div>

                    <small id='pNldk'></small><noframes id='pNldk'>