Ich teste Gmail Email Markup functionality for Parcel Deliveries, und es scheint, ich kann es nicht richtig machen. Dies ist der E-Mail-Inhalt nach sending an e-mail to myself:Gmail-E-Mail-Markup funktioniert nicht
Return-Path: <[email protected]>
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 <[email protected]>
(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 -0300
From: "Test Name" <[email protected]>
To: [email protected]
Subject: Your package is on its way
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/html; charset=us-ascii
Content-Disposition: inline
User-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>
Das Markup gilt nach den markup validator. Es gibt empfohlene (aber nicht benötigte) Felder, die ich vermisse. Hinzufügen von ihnen hilft nicht.
Ich habe auch versucht, das Mikrodaten-Format ohne Glück so weit:
<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>
Was bin ich?
ich mutt bin mit der E-Mail senden:
mutt -e "set content_type=text/html" [email protected] -s "Your package is on its way" < test.html
oder ohne Inhaltstyp:
mutt [email protected] -s "Your package is on its way" < test.html
ich das gleiche Problem haben, die Mikro den Validator übergibt, sondern auch dann, wenn Senden einer E-Mail an mich selbst werden sie verworfen. Ich habe gestern einen SPF-Datensatz zu meinem DNS hinzugefügt, obwohl ich nicht glaube, dass er für Selbsttests benötigt wird (https://developers.google.com/gmail/markup/testing-your-schema). –
Ich schaffte es schließlich, es zu tun. Ich musste einen SPF-Eintrag hinzufügen und google IP 2a00: 1450: 4010: c07 :: 264 als erlaubten Absender markieren. Ich denke es ist, weil ich Google SMTP Relais verwende. –
@AntoinePinsard danke, ich werde das definitiv ausprobieren. – jlhonora