Return-Path: <test.email@gmail.com>Received: from my-pc.local ([my.ip.add.ress]) by mx.Google.com with ESMTPSA ID 68sm3737559qgz.8.2015.01.29.06.06.37 for <test.email@gmail.com> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu,29 Jan 2015 06:06:38 -0800 (PST)Date: Thu,29 Jan 2015 11:06:33 -0300From: "Test name" <test.email@gmail.com>To: test.email@gmail.comSubject: Your package is on its wayMessage-ID: <20150129140633.GA18059@my-pc.local>MIME-Version: 1.0Content-Type: text/HTML; charset=us-asciiContent-disposition: inlineUser-Agent: Mutt/1.5.23 (2014-03-12)<HTML> <body> <script type="application/ld+Json"> { "@context": "http://schema.org","@type": "ParcelDelivery","deliveryAddress": { "@type": "PostalAddress","streetAddress": "Test Address","addressLocality": "Test locality","addressRegion": "Test Region","addressCountry": "CL","postalCode": "7551234" },"expectedArrivalUntil": "2015-02-12T12:00:00-04:00","carrIEr": { "@type": "Organization","name": "Test org" },"itemShipped": { "@type": "Product","name": "iPod Mini" },"partOfOrder": { "@type": "Order","orderNumber": "176057","merchant": { "@type": "Organization","name": "Test Org 2" },"orderStatus": "OrderInTransit" },"trackingUrl": "http://track.com/track/1234567890","trackingNumber": "1234567890" } </script> <p>Test paragraph</p> </body></HTML>
该标记根据markup validator有效.建议(但不是必填)我缺少的字段.添加它们没有帮助.
我还试过微数据格式,没有运气到目前为止:
<HTML> <body> <div itemscope itemtype="http://schema.org/ParcelDelivery"> <div itemprop="deliveryAddress" itemscope itemtype="http://schema.org/PostalAddress"> <Meta itemprop="streetAddress" content="Test Address"/> <Meta itemprop="addressLocality" content="San Francisco"/> <Meta itemprop="addressRegion" content="CA"/> <Meta itemprop="addressCountry" content="US"/> <Meta itemprop="postalCode" content="94107"/> </div> <Meta itemprop="expectedArrivalUntil" content="2015-01-12T12:00:00-08:00"/> <div itemprop="carrIEr" itemscope itemtype="http://schema.org/Organization"> <Meta itemprop="name" content="Test CarrIEr"/> </div> <div itemprop="itemShipped" itemscope itemtype="http://schema.org/Product"> <Meta itemprop="name" content="iPod Mini"/> </div> <div itemprop="partOfOrder" itemscope itemtype="http://schema.org/Order"> <Meta itemprop="orderNumber" content="176057"/> <div itemprop="merchant" itemscope itemtype="http://schema.org/Organization"> <Meta itemprop="name" content="Bob Dole"/> </div> <Meta itemprop="orderStatus" content="OrderInTransit"/> </div> <Meta itemprop="trackingUrl" content="http://track.com/track/1234567890"/> <Meta itemprop="trackingNumber" content="1234567890"/> </div> <p>Test paragraph</p> </body></HTML>
我失踪了什么
我使用mutt发送电子邮件:
mutt -e "set content_type=text/HTML" test.email@gmail.com -s "Your package is on its way" < test.HTML
或没有内容类型:
mutt test.email@gmail.com -s "Your package is on its way" < test.HTML解决方法 如果您使用Google SMTP中继,则必须使用如下所示的SPF记录:
600 IN TXT "v=spf1 a include:_spf.Google.com ~all"
资料来源:https://support.google.com/a/answer/178723?hl=en
总结以上是内存溢出为你收集整理的html – Gmail电子邮件标记不工作全部内容,希望文章能够帮你解决html – Gmail电子邮件标记不工作所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)