我發送HTML和文本MIME部分槽的Gmail SMTP ...(我的域名註冊和設置的gmail)EMAILS不傳遞(通過PHPMailer的精簡版發送)
的郵件來了到Gmail(在SPAM文件夾),而不是現在一些其他的郵件收件箱(Hotmail的一)...
$mail = new PHPMailerLite();
$mail->CharSet = "utf-8";
$mail->SMTPAuth = false;
$mail->IsHTML(true);
$mail->SetFrom($this->CONF["appemail"], $this->CONF["appemail_from"]);
$mail->Host = "smtp.mydomain.com";
$mail->SMTPSecure = "ssl";
$mail->Port = 587;
$mail->SMTPAuth = true;
$mail->Username = "[email protected]";
$mail->Password = "*****";
$mail->AddAddress($to);
$mail->Subject = $subject;
$mail->MsgHTML($body);
$mail->Send();
我試過的Qmail,SMTPAUTH真的,等...沒有什麼工作!
這不是羣發郵件,只是簡單的註冊確認電子郵件...
我試過郵件黑猩猩,料槽發送API ...和相同的郵件傳送(到Hotmail太)...但郵件黑猩猩是不是發送單個郵件,這是有點慢,不切實際(因爲你必須在飛行中創建的活動)...
任何其他的想法?
編輯===================================== 我試過只使用PHP郵件功能用同樣的結果... gmail的說到垃圾郵件,Hotmail的犯規來這裏時都
是(最新)的原始測試MSG(僅HTML)...
Delivered-To: [email protected]
Received: by 10.220.150.212 with SMTP id z20cs54012vcv;
Mon, 31 Oct 2011 12:55:34 -0700 (PDT)
Received: by 10.236.155.104 with SMTP id i68mr19074448yhk.61.1320090932659;
Mon, 31 Oct 2011 12:55:32 -0700 (PDT)
Return-Path: <[email protected]>
Received: from localhost.localdomain ([91.185.208.219])
by mx.google.com with ESMTPS id k64si13327245yhm.46.2011.10.31.12.55.31
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 31 Oct 2011 12:55:32 -0700 (PDT)
Received-SPF: neutral (google.com: 91.185.208.219 is neither permitted nor denied by best guess record for domain of [email protected]) client-ip=91.185.208.219;
Authentication-Results: mx.google.com; spf=neutral (google.com: 91.185.208.219 is neither permitted nor denied by best guess record for domain of [email protected]) [email protected]
Received: from localhost.localdomain (MYDOMAIN [127.0.0.1])
by localhost.localdomain (8.13.8/8.13.8) with ESMTP id p9VJtU07022212
for <[email protected]>; Mon, 31 Oct 2011 20:55:31 +0100
Received: (from [email protected])
by localhost.localdomain (8.13.8/8.13.8/Submit) id p9VJtULP022211;
Mon, 31 Oct 2011 20:55:30 +0100
Date: Mon, 31 Oct 2011 20:55:30 +0100
Message-Id: <[email protected]>
To: [email protected]
Subject: MYDOMAIN.com - Registracija
From: [email protected]
Reply-To: [email protected]
X-Mailer: PHP/5.3.8MIME-Version: 1.0
Content-type: text/html; charset=utf-8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>subject</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body style="font-size:12px; font-family: arial, verdana, sans-serif;">
<table style="border:3px solid #8E89A3;">
<tr style="border:3px solid #fff; background-color: #fff;">
<td style="width: 150px; background-color: #524E63; vertical-align: bottom;"><img src="http://MYDOMAIN.com/media/mail_bg.png" /></td>
<td style="width:auto; padding:15px 20px;">
<h4 style="color:#000 !important; font-size:16px !important; font-weight: bold !important;">ÄŒestitke</h4>
<p>Le Å¡e korak vas loÄi, da postanete MYDOMAIN.</p>
<p style="margin-top:20px;">Vaša registracijska koda je<br>
<b>{code}</b>
</p>
<p style="margin-top:30px;">Kliknite na spodnjo povezavo<br>
<a href="{url}">{url}</a>
</p>
<p style="margin-top:50px;">Prijazen pozdrav<br /><b>Ekipa MYDOMAINja</b></p>
<p class="footer" style="font-size:10px !important; color:#999; margin-top:30px;">
Podjetje: <b>MYDOMAIN d.o.o. Napredni spletni oglasnik</b> - ggggggg: <br />
Web: <a href="http://MYDOMAIN.com" style="color:#666 !important;">http://MYDOMAIN.com</a> - E-mail: <a href="mailto:[email protected]" style="color:#666 !important;">[email protected]</a> - Tel: <b>05xxxx</b>
</p>
</td>
</tr>
</table>
</body>
</html>
EDIT2:----- ----------添加味精從phpmailer精簡版.....一個做進來在Gmail INBOX和不來hotmail
Delivered-To: [email protected]
Received: by 10.220.150.212 with SMTP id z20cs54409vcv;
Mon, 31 Oct 2011 13:07:23 -0700 (PDT)
Received: by 10.236.22.33 with SMTP id s21mr19191499yhs.70.1320091642527;
Mon, 31 Oct 2011 13:07:22 -0700 (PDT)
Return-Path: <[email protected]>
Received: from localhost.localdomain ([91.185.208.219])
by mx.google.com with ESMTPS id d30si18816984yhl.99.2011.10.31.13.07.20
(version=TLSv1/SSLv3 cipher=OTHER);
Mon, 31 Oct 2011 13:07:21 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 91.185.208.219 as permitted sender) client-ip=91.185.208.219;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of [email protected] designates 91.185.208.219 as permitted sender) [email protected]
Received: from localhost.localdomain (MYDOMAIN [127.0.0.1])
by localhost.localdomain (8.13.8/8.13.8) with ESMTP id p9VK7JH0022228
for <[email protected]>; Mon, 31 Oct 2011 21:07:20 +0100
Received: (from [email protected])
by localhost.localdomain (8.13.8/8.13.8/Submit) id p9VK7I72022227;
Mon, 31 Oct 2011 21:07:18 +0100
X-Authentication-Warning: localhost.localdomain: apache set sender to [email protected] using -f
To: [email protected]
Date: Mon, 31 Oct 2011 21:07:18 +0100
From: =?utf-8?Q?Me=C5=A1etar?= <[email protected]>
Reply-to: =?utf-8?Q?Me=C5=A1etar?= <[email protected]>
Subject: =?utf-8?Q?Me=C5=A1etar_-_Registracija?=
Message-ID: <[email protected]>
X-Priority: 3
X-Mailer: PHPMailer Lite 5.1 (phpmailer.codeworxtech.com)
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="b1_9aa1a988936cf53868568b275c29e728"
--b1_9aa1a988936cf53868568b275c29e728
Content-Type: text/plain; charset = "utf-8"
Content-Transfer-Encoding: 8bit
ÄŒestitke
Le Å¡e korak vas loÄi, da postanete MYDOMAIN.
Vaša registracijska koda je
{code}
Kliknite na spodnjo povezavo
{url}
Prijazen pozdravEkipa MYDOMAINja
Podjetje: MYDOMAIN d.o.o. Napredni spletni oglasnik - xxxx, 1000 - Ljubljana:
Web: http://MYDOMAIN.com - E-mail: [email protected] - Tel: xxxx
--b1_9aa1a988936cf53868568b275c29e728
Content-Type: text/html; charset = "utf-8"
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>*|MC:SUBJECT|*</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body style="font-size:12px; font-family: arial, verdana, sans-serif;">
<table style="border:3px solid #8E89A3;">
<tr style="border:3px solid #fff; background-color: #fff;">
<td style="width: 150px; background-color: #524E63; vertical-align: bottom;"><img src="http://MYDOMAIN.com/media/mail_bg.png" /></td>
<td style="width:auto; padding:15px 20px;">
<h4 style="color:#000 !important; font-size:16px !important; font-weight: bold !important;">ÄŒestitke</h4>
<p>Le Å¡e korak vas loÄi, da postanete MYDOMAIN.</p>
<p style="margin-top:20px;">Vaša registracijska koda je<br>
<b>{code}</b>
</p>
<p style="margin-top:30px;">Kliknite na spodnjo povezavo<br>
<a href="{url}">{url}</a>
</p>
<p style="margin-top:50px;">Prijazen pozdrav<br /><b>Ekipa MYDOMAINja</b></p>
<p class="footer" style="font-size:10px !important; color:#999; margin-top:30px;">
Podjetje: <b>MYDOMAIN d.o.o. Napredni spletni oglasnik</b> - xxxx, 1000 - Ljubljana: <br />
Web: <a href="http://MYDOMAIN.com" style="color:#666 !important;">http://MYDOMAIN.com</a> - E-mail: <a href="mailto:[email protected]" style="color:#666 !important;">[email protected]</a> - Tel: <b>xxxx</b>
</p>
</td>
</tr>
</table>
</body>
</html>
--b1_9aa1a988936cf53868568b275c29e728--
編輯3 ============================================ ==
NVM,我很愚蠢的地獄...... PHPMailer的LITE不包括SMTP功能:(
爲什麼不使用普通的sendmail?順便說一句 - 在這裏發佈從您的gmail收到的消息的來源 –
當您提交郵件到Gmail時,是否有退回郵件或SMTP錯誤? –
沒有smtp錯誤! –