簡體   English   中英

phpmailer,php,標題,電子郵件轉到垃圾郵件

[英]phpmailer, php, header, email goes to spam

我在從系統發送電子郵件時遇到問題,問題是電子郵件被發送到gmail / yahoo / hotmail中的垃圾郵箱。 我在做了一些功課后發布了這里,並且已經驗證並檢查了SPF設置,反向DNS設置(指向其他地方,並在今天早上約5小時前進行了更改)。 RDNS檢查現在說映射是完美的。 但沒有運氣。 郵件將去spambox。 可能是什么問題呢?

背景:我使用PHP與PHPMailer發送電子郵件。

來自垃圾郵件箱中收到的郵件的標題:

Delivered-To: ajithsubramanian@gmail.com
Received: by 10.227.144.12 with SMTP id x12cs63931wbu;
    Mon, 9 May 2011 17:05:44 -0700 (PDT)
Received: by 10.68.64.225 with SMTP id r1mr11349194pbs.250.1304985942785;
    Mon, 09 May 2011 17:05:42 -0700 (PDT)
Return-Path: <info@xpal.com>
Received: from xpal.com (208.78.241.38.svwh.net [208.78.241.38])
    by mx.google.com with ESMTPS id w1si21200467pbh.199.2011.05.09.17.05.40
    (version=TLSv1/SSLv3 cipher=OTHER);
    Mon, 09 May 2011 17:05:41 -0700 (PDT)
Received-SPF: pass (google.com: domain of info@xpal.com designates 208.78.241.38 as permitted sender) client-ip=208.78.241.38;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of info@xpal.com designates 208.78.241.38 as permitted sender) smtp.mail=info@xpal.com
Received: by xpal.com (Postfix, from userid 33)
id F31C12C30BA; Mon,  9 May 2011 17:05:29 -0700 (PDT)
To: Ajith Ravi <ajithsubramanian@gmail.com>
Subject: checkarun replied on your xpalling on Sindura
X-PHP-Originating-Script: 0:phpmailer_class.php
Date: Mon, 9 May 2011 17:05:29 -0700
From: XPal Members Alert <info@xpal.com>
Reply-to: Xpal Members Alert <info@xpal.com>
Message-ID: <e773974b10a1d7a0e54d55f489427da1@xpal.com>
X-Priority: 3
X-Mailer: PHPMailer 5.1 (phpmailer.sourceforge.net)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_e773974b10a1d7a0e54d55f489427da1"

這是因為當您使用PHP mail()函數發送郵件時,如果您使用的是共享主機,它將顯示在您的Received標頭中。 一種方法是更改​​您要發送的標頭。 本文本文提供了一種通過更改標頭來繞過垃圾郵件過濾器的好方法。

對於最佳實踐,您應該使用發件人策略框架(SPF)進行調查,以避免被視為垃圾郵件。

您可能還對sendmail感興趣, sendmail連接到另一個電子郵件帳戶(例如,Gmail帳戶)並從該帳戶發送郵件,而不是從本地服務器發送郵件。

嘗試搜索或檢查相關。 最值得注意的是,大多數都在這里得到解答。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM