【发布时间】:2015-09-08 20:42:11
【问题描述】:
我正在托管自己的网站,而不是使用常规的付费虚拟主机,并使用 PHPmailer 向我的用户发送通知。我想阻止我的邮件进入他们的垃圾邮件文件夹。我使用我的互联网主机作为我的 SMTP 来发送邮件,并使用 ZOHOmail 来接收邮件。
这是发送邮件的代码:
$mail = new PHPMailer;
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'smtp-server.tampabay.rr.com'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = '******@tampabay.rr.com'; // SMTP username
$mail->Password = '******'; // SMTP password
//$mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
$mail->From = 'webmaster@picknflgames.com';
$mail->FromName = 'Pick NFL Games';
$mail->addReplyTo('webmaster@picknflgames.com');
//$mail->addReturnPath('webmaster@picknflgames.com');
// $mail->addAddress('webmaster@picknflgames.com'); // Name is optional
// $mail->addCC('$TE');
// $mail->addBCC($value);
$mail->WordWrap = 50; // Set word wrap to 50 characters
$mail->isHTML(true); // Set email format to HTML
$mail->Subject = $subject;
我在哪里可以启用 SPF,但我不确定是否可以通过我的 Internet 软管电子邮件来完成。也许我应该尝试使用 ZOHOmail 发送。
以下是最近一封电子邮件的标题:
From: Pick NFL Games <webmaster@picknflgames.com>
Subject: Season is fast approaching
Date: August 27, 2015 11:30:35 PM EDT
To: Patrick Lewis <patrick@patricklewis.net>
Reply-To: webmaster@picknflgames.com
Delivered-To: patrick@patricklewis.net
Received-Spf: Pass (zoho.com: domain of webmaster@picknflgames.com designates 173.169.21.54 as permitted sender using best guess ) client-ip: 173.169.21.54
Return-Path: <webmaster@picknflgames.com>
Return-Path: <webmaster@picknflgames.com>
Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.226]) by mx.zohomail.com with SMTP id 144073263762811.694320566534088; Thu, 27 Aug 2015 20:30:37 -0700 (PDT)
Received: from [173.169.21.54] ([173.169.21.54:32798] helo=10.0.1.99) by cdptpa-oedge03 (envelope-from <webmaster@picknflgames.com>) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id E9/20-20019-CD5DFD55; Fri, 28 Aug 2015 03:30:36 +0000
Message-Id: <a0634c40fd39d8be6126636437ceda96@10.0.1.99>
X-Priority: 3
X-Mailer: PHPMailer 5.2.8 (https://github.com/PHPMailer/PHPMailer/)
Mime-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Rr-Connecting-Ip: 107.14.168.142:25
X-Cloudmark-Score: 0
X-Zohomail: ZRCVF-BYFANCY_1 SS_1 SFPD SFPP UW11 SFP_WHTCNT_EXT SGR4_1_11085_176
X-Zohomail-Owner: <a0634c40fd39d8be6126636437ceda96@10.0.1.99>+zmo_1_<webmaster@picknflgames.com>
X-Zohomail-Sender: 173.169.21.54
X-Zoho-Virus-Status: 2
【问题讨论】:
-
更新您的 PHPMailer - 您使用的是旧版本。
标签: phpmailer spam-prevention self-hosting zoho