基于HTML的电子邮件不会显示在Hotmail&;中;Gmail

基于HTML的电子邮件不会显示在Hotmail&;中;Gmail,gmail,html-email,hotmail,Gmail,Html Email,Hotmail,我有一封简单的电子邮件,它的正文是HTML 这是简单的HTML: <html> <head> <meta charset="utf-8"> <link href="http://fonts.googleapis.com/css?family=Titillium+Web:200,300,400,600" rel="stylesheet" type="text/css"> <meta name="viewport" c

我有一封简单的电子邮件,它的正文是HTML

这是简单的HTML:

<html>
  <head>
    <meta charset="utf-8">
    <link href="http://fonts.googleapis.com/css?family=Titillium+Web:200,300,400,600" rel="stylesheet" type="text/css">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
      .ticket_holder {
      width:800px;
      height:480px;
      background-image:url(http://www.domain.com/img/sorteos/billete_sorteo_24-07-2015.jpg);
      float:left;
      margin:10px auto;
      position:relative;
      }
      .ticket_number {
      width:277px;
      height:60px;
      text-align:center;
      position:absolute;
      top:290px;
      left:450px;
      font-size:42px;
      color:#11AA00;
      font-family: Titillium Web, sans-serif;
      font-weight:bold;
      }
    </style>
  </head>
  <body>
    <div class="ticket_holder">
      <div class="ticket_number">0236</div>
    </div>
  </body>
</html>

.持票人{
宽度:800px;
高度:480px;
背景图片:url(http://www.domain.com/img/sorteos/billete_sorteo_24-07-2015.jpg);
浮动:左;
利润率:10px自动;
位置:相对位置;
}
.车票号码{
宽度:277px;
高度:60px;
文本对齐:居中;
位置:绝对位置;
顶部:290px;
左:450px;
字体大小:42px;
颜色:11AA00;
字体系列:提香网,无衬线;
字体大小:粗体;
}
0236
现在,我将显示从Gmail帐户获得的电子邮件内容。我想肯定有一个问题与头球有关,但不知道应该是什么

Delivered-To: fran@gmail.com
Received: by 10.37.71.193 with SMTP id u184csp169517yba;
        Fri, 10 Jul 2015 12:10:37 -0700 (PDT)
X-Received: by 10.129.105.213 with SMTP id e204mr24861296ywc.97.1436555437024;
        Fri, 10 Jul 2015 12:10:37 -0700 (PDT)
Return-Path: <bounce-md_30672132.55a01856.v1-94c0ce7842b842caaa20ee481b5d5bda@mandrillapp.com>
Received: from mail136-7.atl41.mandrillapp.com (mail136-7.atl41.mandrillapp.com. [198.2.136.7])
        by mx.google.com with ESMTPS id k7si6464663ykd.6.2015.07.10.12.10.36
        for <apalabrados.co@gmail.com>
        (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Fri, 10 Jul 2015 12:10:36 -0700 (PDT)
Received-SPF: pass (google.com: domain of bounce-md_30672132.55a01856.v1-94c0ce7842b842caaa20ee481b5d5bda@mandrillapp.com designates 198.2.136.7 as permitted sender) client-ip=198.2.136.7;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of bounce-md_30672132.55a01856.v1-94c0ce7842b842caaa20ee481b5d5bda@mandrillapp.com designates 198.2.136.7 as permitted sender) smtp.mail=bounce-md_30672132.55a01856.v1-94c0ce7842b842caaa20ee481b5d5bda@mandrillapp.com;
       dkim=pass header.i=@mail136-7.atl41.mandrillapp.com;
       dkim=pass header.i=@mandrillapp.com
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=mandrill; d=mail136-7.atl41.mandrillapp.com;
 h=From:Sender:Subject:Reply-To:To:Message-Id:Date:MIME-Version:Content-Type; i=contacto@mail136-7.atl41.mandrillapp.com;
 bh=QTHxKn1Liqi9ZJNIUiIqQFl0DNg=;
 b=Wep3W+aIvU17Xwa1SNM0he9Bf403lXYidvKGtwiZpb9QrccWY0DBqImsEqnEGNBKMdSpTd/MdyYW
   k2bgPf/yqHdwNXPDsqS3naEEs/gJC7dfIU+2zvGKp2fpGKsKyzhHkWITEMKV5DoMs3WPNKEPxopx
   l7GY4JpTaaSm7f+4B3M=
DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=mandrill; d=mail136-7.atl41.mandrillapp.com;
 b=JIWGJJlHUZt5grcY4at3yqUabbvCI/KrS/VNplK+n+Ty9cDuCQQEANkExNamBojv+SMXsL8URPnl
   igpbzKkhUk1WEvjufNYp6pZxAPkjHljuLpA+XdnYlgjCzvWJ4gI1QRuq3v5OeXxP6fcebsMSJrhn
   rKWFKYfrMCpZx8v4NXk=;
Received: from pmta04.mandrill.prod.atl01.rsglab.com (127.0.0.1) by mail136-7.atl41.mandrillapp.com id hk0cao1sb1ko for <apalabrados.co@gmail.com>; Fri, 10 Jul 2015 19:09:11 +0000 (envelope-from <bounce-md_30672132.55a01856.v1-94c0ce7842b842caaa20ee481b5d5bda@mandrillapp.com>)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mandrillapp.com; 
 i=@mandrillapp.com; q=dns/txt; s=mandrill; t=1436555350; h=From : 
 Sender : Subject : Reply-To : To : Message-Id : Date : MIME-Version : 
 Content-Type : From : Subject : Date : X-Mandrill-User : 
 List-Unsubscribe; bh=N1DazcpdS55HBslvogsYDTv2iLdRO0rnUDZkh9PCbtQ=; 
 b=OjcMKaAC4K4s1I3fpjFwqMGbYcayh7661XLVARyfmap3g1zZMW/+FWtGU2rzKrIF7wNbtC
 +4E06pOycBBa7Q/D6BGk8CtLQLtWBe260o9X7d4gvBAl70/t0zyqbkucPx82AKzXe956cwsB
 wiBB9xxxmgQdq/LJsmax3b1/+ZRWk=
From: "Contacto impresoras3d.com" <contacto@impresoras3d.com>
Sender: "Contacto impresoras3d.com" <contacto@mail136-7.atl41.mandrillapp.com>
Subject: =?utf-8?Q?Combinaci=C3=B3n=20Sorteo=2024/07/2015?=
Return-Path: <bounce-md_30672132.55a01856.v1-94c0ce7842b842caaa20ee481b5d5bda@mandrillapp.com>
Received: from [188.165.162.97] by mandrillapp.com id 94c0ce7842b842caaa20ee481b5d5bda; Fri, 10 Jul 2015 19:09:10 +0000
Reply-To: <contacto@impresoras3d.com>
To: <apalabrados.co@gmail.com>
X-Report-Abuse: Please forward a copy of this message, including all headers, to abuse@mandrill.com
X-Report-Abuse: You can also report abuse here: http://mandrillapp.com/contact/abuse?id=30672132.94c0ce7842b842caaa20ee481b5d5bda
X-Mandrill-User: md_30672132
Message-Id: <30672132.20150710190910.55a01856de9973.48448148@mail136-7.atl41.mandrillapp.com>
Date: Fri, 10 Jul 2015 19:09:10 +0000
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="_av-M8imh9jmVCY5HVEL4ea0TA"

--_av-M8imh9jmVCY5HVEL4ea0TA
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

         0236
--_av-M8imh9jmVCY5HVEL4ea0TA
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 7bit

<html>
                        <head>
                            <meta charset="utf-8">
                                <link href="http://fonts.googleapis.com/css?family=Titillium+Web:200,300,400,600" rel="stylesheet" type="text/css">
                            <meta name="viewport" content="width=device-width, initial-scale=1">
                        <style>
                        .ticket_holder {
                                width:800px;
                                height:480px;
                                background-image:url(http://www.impresoras3d.com/img/sorteos/billete_sorteo_24-07-2015.jpg);
                                float:left;
                                margin:10px auto;
                                position:relative;
                        }
                        .ticket_number {
                                width:277px;
                                height:60px;
                                text-align:center;
                                position:absolute;
                                top:290px;
                                left:450px;
                                font-size:42px;
                                color:#11AA00;
                                font-family: Titillium Web, sans-serif;
                                font-weight:bold;
                        }
                        </style>
                        </head>

                        <body>
                                <div class="ticket_holder">
                                        <div class="ticket_number">0236</div>
                                </div>
                        <img src="http://mandrillapp.com/track/open.php?u=30672132&id=94c0ce7842b842caaa20ee481b5d5bda" height="1" width="1"></body>
                        </html>
--_av-M8imh9jmVCY5HVEL4ea0TA--
交付给:fran@gmail.com
收到日期:193年10月37日,SMTP id为u184csp169517yba;
2015年7月10日星期五12:10:37-0700(PDT)
X-Received:10.129.105.213,SMTP id为e204mr24861296ywc.97.143655437024;
2015年7月10日星期五12:10:37-0700(PDT)
返回路径:
收到:来自mail136-7.atl41.mandrillapp.com(mail136-7.atl41.mandrillapp.com。[198.2.136.7])
由mx.google.com提供,ESMTPS id为K7SI64663YKD.6.2015.07.10.12.10.36
对于
(版本=TLSv1.2密码=ECDHE-RSA-AES128-GCM-SHA256位=128/128);
2015年7月10日星期五12:10:36-0700(PDT)
收到SPF:pass(google.com:domain of bounce-md_30672132.55a01856.v1-94c0ce7842b842caaa20ee481b5d5bda@mandrillapp.com指定198.2.136.7为允许的发送方)客户端ip=198.2.136.7;
认证结果:mx.google.com;
spf=pass(google.com:domain of bounce-md_30672132.55a01856.v1-94c0ce7842b842caaa20ee481b5d5bda@mandrillapp.com指定198.2.136.7为允许的发件人)smtp.mail=bounce-md_30672132.55a01856.v1-94c0ce7842b842caaa20ee481b5d5bda@mandrillapp.com;
dkim=passheader.i=@mail136-7.atl41.mandrillapp.com;
dkim=passheader.i=@mandrillapp.com
DKIM签名:v=1;a=rsa-sha1;c=放松/放松;s=山楂;d=mail136-7.atl41.mandrillapp.com;
h=From:Sender:Subject:Reply-To:Message-Id:Date:MIME-Version:Content-Type;我=contacto@mail136-7.atl41.mandrillapp.com;
bh=QTHxKn1Liqi9ZJNIUiIqQFl0DNg=;
b=Wep3W+aIvU17Xwa1SNM0he9Bf403lXYidvKGtwiZpb9QrccWY0DBqImsEqnEGNBKMdSpTd/MdyYW
k2bgPf/yqHdwNXPDsqS3naEEs/gJC7dfIU+2ZVGKP2FPGKSKYZHKWITEMKV5DOMS3WPNKEPxOPX
l7GY4JpTaaSm7f+4B3M=
域密钥签名:a=rsa-sha1;c=无FWS;q=dns;s=山楂;d=mail136-7.atl41.mandrillapp.com;
b=JIWGJJLHUZT5GRCY4AT3YQUABVCI/KrS/VNplK+n+Ty9cDuCQQEANkExNamBojv+SMXsL8URPnl
IGPBZKKHUK1WEVJUFNYPZXAPKJHLJULPA+XdnYlgjCzvWJ4gI1QRuq3v5OeXxP6fcebsMSJrhn
rKWFKYfrMCpZx8v4NXk=;
已收到:从pmta04.mandrill.prod.atl01.rsglab.com(127.0.0.1)通过邮箱136-7.atl41.mandrillapp.com收到,id hk0cao1sb1ko,用于;2015年7月10日星期五19:09:11+0000(信封来自)
DKIM签名:v=1;a=rsa-sha256;c=放松/放松;d=mandrillapp.com;
i=@mandrillapp.com;q=dns/txt;s=山楂;t=143655550;h=来自:
发件人:主题:回复:收件人:邮件Id:日期:MIME版本:
内容类型:发件人:主题:日期:X-Mandrill-User:
列出退订名单;bh=N1DazcpdS55HBslvogsYDTv2iLdRO0rnUDZkh9PCbtQ=;
b=OJCMKAAC4K4S1I3FPJFWQMGBYCAYH7661XLVARYFMP3G1ZZMW/+FWtGU2rzKrIF7wNbtC
+4E06pOycBBa7Q/D6BGk8CtLQLtWBe260o9X7d4gvBAl70/t0zyqbkucPx82AKzXe956cwsB
wiBB9xxxmgQdq/LJsmax3b1/+ZRWk=
发件人:“Contacto impersoras3d.com”
发件人:“Contacto impersoras3d.com”
主题:=?utf-8?Q?Combinaci=C3=B3n=20Sorteo=2024/07/2015=
返回路径:
接收:从[188.165.162.97]通过mandrillapp.com id 94C0CE7842B842CAA20EE481B5D5BDA接收;2015年7月10日星期五19:09:10+0000
答复:
致:
X-Report-虐待:请将此邮件的副本(包括所有标题)转发至abuse@mandrill.com
X报告滥用:您也可以在此处报告滥用:http://mandrillapp.com/contact/abuse?id=30672132.94c0ce7842b842caaa20ee481b5d5bda
X-Mandrill-User:md_30672132
消息Id:
日期:2015年7月10日星期五19:09:10+0000
MIME版本:1.0
内容类型:多部分/备选;边界=“_av-M8imh9jmVCY5HVEL4ea0TA”
--_av-M8imh9jmVCY5HVEL4ea0TA
内容类型:文本/纯文本;字符集=utf-8
内容传输编码:7bit
0236
--_av-M8imh9jmVCY5HVEL4ea0TA
内容类型:text/html;字符集=utf-8
内容传输编码:7bit
.持票人{
宽度:800px;
高度:480px;
背景图片:url(http://www.impresoras3d.com/img/sorteos/billete_sorteo_24-07-2015.jpg);
浮动:左;
利润率:10px自动;
位置:相对位置;
}
.车票号码{
宽度:277px;
高度:60px;
文本对齐:居中;
位置:绝对位置;
顶部:290px;
左:450px;
字体大小:42px;
颜色:11AA00;
字体系列:提香网,无衬线;
字体大小:粗体;
}
0236
--_av-M8imh9jmVCY5HVEL4ea0TA--

Gmail去掉了head标签,许多电子邮件客户端对div标签样式的支持有限。最好将div转换为表并内联样式。有关CSS兼容性和内联线的信息,请参阅

Gmail会将头部剥离