我测试使用Google脚本发送标记并查找,
如果通过Google SMTP将同一模板从我的Gmail帐户发送到我的Gmail帐户,则ld+json
看不到。
我的模板是:
<!DOCTYPE html>
<html>
<head>
<title>Prenotazine TiPrenota</title>
<meta charset="UTF-8">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EventReservation",
"reservationNumber": "5aa46b79-140d-491e-a1db-568ec1c423bd",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {
"@type": "Person",
"name": "Savio Capannini"
},
"reservationFor": {
"@type": "Event",
"name": "SAN MARINO ADVENTURES SRL - COE 21269",
"startDate": "2017-03-27T12:30:00",
"location": {
"@type": "Place",
"name": "SAN MARINO ADVENTURES SRL - COE 21269",
"address": {
"@type": "PostalAddress",
"streetAddress": "San Marino Adventure Parco Montecerreto, San Marino (RSM)"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "44,490501",
"longitude": "12,281881"
}
},
"performer":"Reservation"
},
"modifyReservationUrl": "https://www.mysite.it/?token=5aa46b79-140d-491e-a1db-568ec1c423bd"
}
</script>
</head>
<body>
Testo emeil
</body>
</html>
我需要G Suite帐户试试这个吗? 为什么没有看到加价? 问题在哪里?
请求帮助! THKS。
答案 0 :(得分:0)
您可以参考此SO post。在向其他用户正确发送电子邮件之前,请确保registered with Google。另请注意,电子邮件必须为authenticated via DKIM or SPF。如果您使用的是Google SMTP中继,则必须使用类似this的SPF记录:v=spf1 include:_spf.google.com ~all
。
这是另一个可能有用的主题:Gmail Email Markup not Working