2012-01-26 89 views
1

我使用php從網頁發送電子郵件。 Gmail用戶通過垃圾郵件收到此郵件。 我已經創建了DNS反向記錄和MX記錄。 這裏是電子郵件的代碼:來自apache的電子郵件來自Gmail垃圾郵件

Delivered-To: [email protected] 
Received: by 10.204.60.140 with SMTP id p12cs47940bkh; 
     Thu, 26 Jan 2012 07:12:08 -0800 (PST) 
Received: by 10.224.116.201 with SMTP id n9mr3202312qaq.16.1327590727329; 
     Thu, 26 Jan 2012 07:12:07 -0800 (PST) 
Return-Path: <[email protected]> 
Received: from banana-app.com (banana-app.com. [107.6.86.26]) 
     by mx.google.com with ESMTP id t19si1801483qcx.182.2012.01.26.07.12.06; 
     Thu, 26 Jan 2012 07:12:07 -0800 (PST) 
Received-SPF: pass (google.com: domain of [email protected] designates 107.6.86.26 as permitted sender) client-ip=107.6.86.26; 
Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 107.6.86.26 as permitted sender) [email protected] 
Received: from banana-app.com (banana-app.com [127.0.0.1]) 
    by banana-app.com (8.13.8/8.13.8) with ESMTP id q0QFC64q013520 
    for <[email protected]>; Thu, 26 Jan 2012 10:12:06 -0500 
Received: (from [email protected]) 
    by banana-app.com (8.13.8/8.13.8/Submit) id q0QFC6Rq013519; 
    Thu, 26 Jan 2012 10:12:06 -0500 
Message-Id: <[email protected]> 
To: [email protected] 
Subject: Password Recovery 
X-PHP-Originating-Script: 0:Sendmail.php 
From: info <[email protected]> 
Reply-To: [email protected] 
Date: Thu, 26 Jan 2012 17:12:06 +0200 
Content-Type: text/html; charset=UTF-8 
Content-Transfer-Encoding: quoted-printable 
Content-Disposition: inline 
MIME-Version: 1.0 

=0A    Hello,=0A    <BR/>=0A    You= 
recently requested to reset the password for your account.=0A   = 
<BR/>=0A    Banana=0A 

有人可以幫我找到這個問題?

+1

你爲什麼要發送一封HTML電子郵件,內容與「重置密碼」電子郵件一樣簡單?明文電子郵件不太可能被標記爲垃圾郵件。 – ThiefMaster

+0

「密碼恢復」之類是一個常見的釣魚電子郵件主題,但我知道這不是一個高度技術性的響應 –

回答

1

你可以考慮使用像SwiftMailer這樣的庫。在這樣的圖書館中,開發人員對諸如防止被標記爲垃圾郵件等主題給予了很多思考,所以這可能會解決您的問題。

+1

或[PHPMailer](http://phpmailer.worxware.com/),它也幫助我避免垃圾郵件文件夾(儘管該項目網站的令人髮指的1996年設計)。 – rdlowrey

+1

我使用Zend_Mail發送電子郵件。 – user1171557

+0

我試過SwiftMailer。相同的結果,垃圾郵件。 – user1171557

1

許多電子郵件提供商檢測到包含HTML內容爲垃圾郵件的電子郵件。 用電子郵件正文中的簡單文本再試一次,以消除此選項。

+0

我試圖發送純文本電子郵件,試圖發送沒有「密碼」的電子郵件。相同的結果,垃圾郵件。 – user1171557

+1

你是否遵循批量發件人指南? https://support.google.com/mail/bin/answer.py?hl=zh_CN&answer=81126 – alfasin

相關問題