Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/272.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未发送电子邮件(通过phpMailer-lite发送)_Php_Email_Phpmailer_Mailchimp - Fatal编程技术网

未发送电子邮件(通过phpMailer-lite发送)

未发送电子邮件(通过phpMailer-lite发送),php,email,phpmailer,mailchimp,Php,Email,Phpmailer,Mailchimp,我正在通过gmail smtp发送html和文本mime部分…(我的域已注册并设置为gmail) 这些邮件将发送到gmail(垃圾邮件文件夹中),而不会发送到其他一些邮件收件箱(其中一个是hotmail) 我试过qMail,SMTPAuth-true等等。。。什么都不管用 这不是群发邮件,只是简单的注册确认电子邮件 我试着给黑猩猩发邮件,通过API。。。同样的邮件也会被发送到hotmail。。。但是Mail Chimp不适合发送单个邮件,而且它有点慢而且不切实际(因为你必须在飞行中创建活动) 还

我正在通过gmail smtp发送html和文本mime部分…(我的域已注册并设置为gmail)

这些邮件将发送到gmail(垃圾邮件文件夹中),而不会发送到其他一些邮件收件箱(其中一个是hotmail)

我试过qMail,SMTPAuth-true等等。。。什么都不管用

这不是群发邮件,只是简单的注册确认电子邮件

我试着给黑猩猩发邮件,通过API。。。同样的邮件也会被发送到hotmail。。。但是Mail Chimp不适合发送单个邮件,而且它有点慢而且不切实际(因为你必须在飞行中创建活动)

还有其他想法吗

编辑===================================== 我试着只使用php邮件函数,结果是一样的。。。gmail变成了垃圾邮件,hotmail根本就没有

这是(最新的)原始测试消息(仅html)

交付给:xy@gmail.com
收到:10.220.150.212,SMTP id为z20cs54012vcv;
2011年10月31日星期一12:55:34-0700(太平洋时间)
收到日期:10.236.155.104,SMTP id为i68mr19074448yhk.61.1320090932659;
2011年10月31日星期一12:55:32-0700(太平洋时间)
返回路径:

Prijazen pozdrav
Ekipa MYDOMAINja

Podjetje:MYDOMAIN d.o.o.Napredni spletni oglasnik-ggggg:
网站:-电子邮件:-电话:05xxxx

EDIT2:--------------从phpmailer lite添加消息。。。。。其中一个会出现在gmail收件箱中,而不会出现在hotmail中

Delivered-To: x.y@gmail.com
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: <info@MYDOMAIN.com>
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 info@MYDOMAIN.com 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 info@MYDOMAIN.com designates 91.185.208.219 as permitted sender) smtp.mail=info@MYDOMAIN.com
Received: from localhost.localdomain (MYDOMAIN [127.0.0.1])
    by localhost.localdomain (8.13.8/8.13.8) with ESMTP id p9VK7JH0022228
    for <x.y@gmail.com>; Mon, 31 Oct 2011 21:07:20 +0100
Received: (from apache@localhost)
    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 info@MYDOMAIN.com using -f
To: x.y@gmail.com
Date: Mon, 31 Oct 2011 21:07:18 +0100
From: =?utf-8?Q?Me=C5=A1etar?= <info@MYDOMAIN.com>
Reply-to: =?utf-8?Q?Me=C5=A1etar?= <info@MYDOMAIN.com>
Subject: =?utf-8?Q?Me=C5=A1etar_-_Registracija?=
Message-ID: <9aa1a988936cf53868568b275c29e728@MYDOMAIN.com>
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: info@MYDOMAIN.com -  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:info@MYDOMAIN.com" style="color:#666 !important;">info@MYDOMAIN.com</a> -   Tel: <b>xxxx</b>
                    </p>
                </td>
            </tr>
        </table>
    </body>
</html>



--b1_9aa1a988936cf53868568b275c29e728--
交付至:x。y@gmail.com
收到日期:10.220.150.212,SMTP id为z20cs54409vcv;
2011年10月31日星期一13:07:23-0700(太平洋时间)
收到:截止10.236.22.33,SMTP id为S21MR191499YHS.70.1320091642527;
2011年10月31日星期一13:07:22-0700(PDT)
返回路径:
已接收:来自localhost.localdomain([91.185.208.219])
由mx.google.com提供,ESMTPS id为d30si18816984yhl.99.2011.10.31.13.07.20
(版本=TLSv1/SSLv3密码=其他);
2011年10月31日星期一13:07:21-0700(太平洋时间)
收到SPF:pass(google.com:domain of ofinfo@MYDOMAIN.com指定91.185.208.219为允许的发送方)客户端ip=91.185.208.219;
认证结果:mx.google.com;spf=pass(google.com:domain of ofinfo@MYDOMAIN.com将91.185.208.219指定为允许的发件人)smtp.mail=info@MYDOMAIN.com
接收:来自localhost.localdomain(MYDOMAIN[127.0.0.1])
通过具有ESMTP id P9VK7JH00228的localhost.localdomain(8.13.8/8.13.8)
对于2011年10月31日星期一21:07:20+0100
收到:(来自apache@localhost)
通过localhost.localdomain(8.13.8/8.13.8/Submit)id p9VK7I72022227;
2011年10月31日星期一21:07:18+0100
X-Authentication-Warning:localhost.localdomain:apache将发件人设置为info@MYDOMAIN.com使用-f
致:x。y@gmail.com
日期:2011年10月31日星期一21:07:18+0100
From:=?utf-8?Q?Me=C5=A1etar?=
回复:=?utf-8?Q?Me=C5=A1etar?=
主题:=?utf-8?Q?Me=C5=A注册会计师=
消息ID:
X优先级:3
X-Mailer:phpmailerLite5.1(PHPMailer.codeworxtech.com)
MIME版本:1.0
内容类型:多部分/备选;
boundary=“b1_9aa1a988936cf53868568b275c29e728”
--b1_9aa1a988936cf53868568b275c29e728
内容类型:文本/纯文本;charset=“utf-8”
内容传输编码:8比特
ÄŒestike
我的领地邮政局。
我是一名注册会计师
{code}
克里克尼特酒店
{url}
MYDOMAINja的Prijazen pozdravEkipa
Podjetje:MYDOMAIN d.o.o.Napredni spletni oglasnik-xxxx,1000-卢布尔雅那:
网状物:http://MYDOMAIN.com -电邮:info@MYDOMAIN.com-电话:xxxx
--b1_9aa1a988936cf53868568b275c29e728
内容类型:text/html;charset=“utf-8”
内容传输编码:8比特
*|主持人:主题|*
ÄŒestike
我的领地邮政局

VaÅa registicijska koda je
{code}

Kliknite na spodnjo povezavo

Prijazen pozdrav
Ekipa MYDOMAINja

Podjetje:MYDOMAIN d.o.o.Napredni spletni oglasnik-xxxx,1000-卢布尔雅那:
网站:-电子邮件:-电话:xxxx

--b1_9aa1a988936cf53868568b275c29e728--
编辑3==============================================


NVM,我真是蠢透了。。。phpmailerLITE不包括smtp功能:(

听起来您主机上的邮件服务器可能被垃圾邮件过滤器阻止。

如果是共享主机或虚拟共享主机,其他客户在过去滥用邮件发送并阻止整个服务器的情况并不少见。我的一台主机发生了这种情况。

来自:webmaster@example.com


这就是你的问题。因为这个域名并不存在——GMail猜测它是垃圾邮件并将它放在那个文件夹中,其他服务就没有GMail那么好了。

使用PHPmailer而不是PHPmailerLITE


PHPMailer LITE没有内置SMTP功能!

,因为新的SMTP规则已在所有邮件服务器上实施,即,您需要设置与在该邮件服务器上定义/注册和有效的发件人电子邮件地址相同的发件人电子邮件地址。您不能使用任何其他电子邮件地址或域名发送垃圾邮件:

e、 g.如果你在谷歌有电子邮件帐户abc@gmail.com您设置了所有SMTP设置和所有。几个月前,我们可以从SMTP API覆盖发件人地址zyx@gmail.comSMTP API也可以工作

但现在你不能这么做了
Delivered-To: xy@gmail.com
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: <apache@localhost.localdomain>
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 apache@localhost.localdomain) 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 apache@localhost.localdomain) smtp.mail=apache@localhost.localdomain
Received: from localhost.localdomain (MYDOMAIN [127.0.0.1])
    by localhost.localdomain (8.13.8/8.13.8) with ESMTP id p9VJtU07022212
    for <xy@gmail.com>; Mon, 31 Oct 2011 20:55:31 +0100
Received: (from apache@localhost)
    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: <201110311955.p9VJtULP022211@localhost.localdomain>
To: xy@gmail.com
Subject: MYDOMAIN.com - Registracija
From: webmaster@example.com
Reply-To: webmaster@example.com
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:info@MYDOMAIN.com" style="color:#666 !important;">info@MYDOMAIN.com</a> -   Tel: <b>05xxxx</b>
                    </p>
                </td>
            </tr>
        </table>
    </body>
</html>
Delivered-To: x.y@gmail.com
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: <info@MYDOMAIN.com>
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 info@MYDOMAIN.com 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 info@MYDOMAIN.com designates 91.185.208.219 as permitted sender) smtp.mail=info@MYDOMAIN.com
Received: from localhost.localdomain (MYDOMAIN [127.0.0.1])
    by localhost.localdomain (8.13.8/8.13.8) with ESMTP id p9VK7JH0022228
    for <x.y@gmail.com>; Mon, 31 Oct 2011 21:07:20 +0100
Received: (from apache@localhost)
    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 info@MYDOMAIN.com using -f
To: x.y@gmail.com
Date: Mon, 31 Oct 2011 21:07:18 +0100
From: =?utf-8?Q?Me=C5=A1etar?= <info@MYDOMAIN.com>
Reply-to: =?utf-8?Q?Me=C5=A1etar?= <info@MYDOMAIN.com>
Subject: =?utf-8?Q?Me=C5=A1etar_-_Registracija?=
Message-ID: <9aa1a988936cf53868568b275c29e728@MYDOMAIN.com>
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: info@MYDOMAIN.com -  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:info@MYDOMAIN.com" style="color:#666 !important;">info@MYDOMAIN.com</a> -   Tel: <b>xxxx</b>
                    </p>
                </td>
            </tr>
        </table>
    </body>
</html>



--b1_9aa1a988936cf53868568b275c29e728--