Highlighting Email Snippets

Email Snippets

Email Snippets in Zoho Mail ensure that important information from an email is highlighted in the email preview. In business scenarios, there might be emails containing information that needs to be highlighted and showed to the users. This can be done by parsing certain sections of the email and in a specific format. 

Schema.org is a collaborative community that is working on creating and promoting schemas for structured data markup on the internet. The format defined by schema.org is understood by Zoho Mail and this markup will be highlighted and rendered as Email Snippets in the email preview.

Highlighting Email Snippets

To highlight important sections of your email, and display them in the email preview you can embed a JSON-LD or Microdata script in the body of your email content. This script will render the sections of the email that you want to be displayed in the email preview. For example, in a flight ticket reservation email, sections such as the flight number, the departure time, the boarding and arrival points can be highlighted. This makes it easier for the user to comprehend the details that are most necessary in the email at a glance. 

In addition to embedding the script, you will have to register with us to identify the Email Snippets that have been parsed in the email. You can register your domain using this link. The domain registration process will be completed after a review of the domain. The organization that has sent the registration request will be contacted, in case there are any further clarifications in this regard.

Similarly, highlighting parts of the email will also be useful in cases of order confirmation emails from e-commerce websites and package tracking emails sent from courier agencies.

Things to do for Zoho Mail to highlight Email Snippets

To highlight snippets in the emails you send, there are two things that need to be checked.

  • The email that you're sending should contain a specific script embedded in either the Microdata or the JSON-LD format.
  • The domain from which you send these email should be registered in our identified list of domains.

Format for highlighting Email Snippets 

To highlight snippets in the emails that you send out, you will have to embed a script in the email that you're sending. Zoho Mail supports both JSON-LD and Microdata formats in the email markup.

Microdata

Microdata is a markup language that has been designed to describe and highlight specific parts of an email. Each of this markup can contain associated attributes. In the Microdata format, the three basic attributes used are itemtypeitemprop and itemscope.

Itemscope - The usage of this attribute within a div tag denotes that all information enclosed within this div tag belongs to a single entity.

Itemtype - When you mention an itemtype, it denotes that all elements within that scope come under the class that is mentioned. You can set this to any of the classes available under the schema.org class

Itemprop - Additional information about the class mentioned as the itemtype can be provided using this attribute.

JSON-LD

JSON-LD is a JSON based syntax that's another markup language which is commonly used. In the JSON-LD format, the @context is set to http://schema.org, the @type is set to any of the classes available under the schema.org class, and the properties of that class are defined in the script. 

Syntax for Highlighting Email Snippets

Flight Ticket Confirmation

When you receive the confirmation emails for flight tickets, certain important data such as the boarding time, boarding and destination airports, the date of journey, etc. can be highlighted and shown to users to help them understand the essence of the email at a quick glance.

Basic Flight Ticket

JSON-LD

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "FlightReservation",
"reservationNumber": “TJK743",
"reservationStatus": "http://schema.org/Confirmed",
"underName": {   
"@type": "Person",  
"name": “Rebecca Anderson" 
}, 
"reservationFor": {   
"@type": "Flight",   
"flightNumber": “914",   
"airline": {     
"@type": "Airline",     
"name": “Pan American World Airways",     
"iataCode": “PA"   
},   
"departureAirport": {     
"@type": "Airport",     
"name": "John F. Kennedy International Airport",     
"iataCode": “JFK"   
},   
"departureTime": “2018-04-07T18:20:00-06:00",   
"arrivalAirport": {     
"@type": "Airport",     
"name": "Miami International Airport",     
"iataCode": “MIA"   
},
"arrivalTime": "2018-04-08T14:30:00-05:00"
}
}
</script> 

Microdata

<div itemscope itemtype="http://schema.org/FlightReservation”>
<meta itemprop="reservationNumber" content="TJK743"/>
<link itemprop="reservationStatus" href="http://schema.org/Confirmed"/> 
<div itemprop="underName" itemscope itemtype="http://schema.org/Person”>
<meta itemprop="name" content=“Rebecca Anderson”/>
</div>
<div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
<meta itemprop="flightNumber" content="914"/>
<div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
<meta itemprop="name" content="Pan American World Airways"/>
<meta itemprop="iataCode" content=“PA"/>
</div>
<div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="John F. Kennedy International Airport"/>
<meta itemprop="iataCode" content=“JFK"/>
</div>
<meta itemprop="departureTime" content="2018-04-07T18:20:00-06:00"/>
<div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
<meta itemprop="name" content="Miami International Airport"/>
<meta itemprop="iataCode" content=“MIA"/>
</div>
<meta itemprop="arrivalTime" content="2018-04-08T14:30:00-05:00"/>
</div>
</div> 

Boarding Pass

If you need the boarding pass details to be highlighted along the rest of the content, you can make use of this syntax.

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "FlightReservation",
  "reservationNumber": "TJK743",
  "reservationStatus": "http://schema.org/Confirmed",
  "underName": {
    "@type": "Person",
    "name": "Rebecca Anderson"
  },
  "reservationFor": {
    "@type": "Flight",
    "flightNumber": "914",
    "airline": {
      "@type": "Airline",
      "name": "Pan American World Airways",
      "iataCode": "PA"
    },
    "departureAirport": {
      "@type": "Airport",
      "name": " John F. Kennedy International Airport ",
      "iataCode": "JFK"
    },
    "departureTime": " 2018-04-07T18:20:00-06:00",
    "arrivalAirport": {
      "@type": "Airport",
      "name": " Miami International Airport ",
      "iataCode": "MIA"
    },
    "arrivalTime": " 2018-04-08T14:30:00-05:00 "
  },
  "airplaneSeat": "5C",
  "airplaneSeatClass": {
    "@type": "AirplaneSeatClass",
    "name": "Economy"
  },
  "ticketNumber": "FIG546",
  "ticketToken": "qrCode:FG56",
  "checkinUrl": "http://panam.org/onlinecheckin.html"
}
</script>

Microdata

<div itemscope itemtype="http://schema.org/FlightReservation">
  <meta itemprop="reservationNumber" content=" TJK743"/>
  <link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Rebecca Anderson"/>
  </div>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
    <meta itemprop="flightNumber" content="914"/>
    <div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
      <meta itemprop="name" content=" Pan American World Airways"/>
      <meta itemprop="iataCode" content="PA"/>
    </div>
    <div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content=" John F. Kennedy International Airport "/>
      <meta itemprop="iataCode" content="JFK"/>
    </div>
    <meta itemprop="departureTime" content=" 2018-04-07T18:20:00-06:00 "/>
    <div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content=" Miami International Airport "/>
      <meta itemprop="iataCode" content="MIA"/>
    </div>
    <meta itemprop="arrivalTime" content=" 2018-04-08T14:30:00-05:00"/>
  </div>
  <meta itemprop="airplaneSeat" content="5C"/>
  <div itemprop="airplaneSeatClass" itemscope itemtype="http://schema.org/AirplaneSeatClass">
    <meta itemprop="name" content="Economy"/>
  </div>
  <meta itemprop="ticketNumber" content=" FIG546 "/>
  <meta itemprop="ticketToken" content="qrCode:FG56"/>
  <link itemprop="checkInUrl" href="http://panam.org/onlinecheckin.html"/>
</div>

Check-In Button

In addition to highlighting the flight and passenger details, you can also add an Check-In button in the email listing using this syntax.

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "FlightReservation",
  "reservationNumber": "TJK743 ",
  "reservationStatus": "http://schema.org/Confirmed",
  "underName": {
    "@type": "Person",
    "name": "Rebecca Anderson"
  },
  "reservationFor": {
    "@type": "Flight",
    "flightNumber": "914",
    "airline": {
      "@type": "Airline",
      "name": "Pan American World Airways",
      "iataCode": "PA"
    },
    "departureAirport": {
      "@type": "Airport",
      "name": "John F. Kennedy International Airport",
      "iataCode": "JFK"
    },
    "departureTime": "2018-04-07T18:20:00-06:00",
    "arrivalAirport": {
      "@type": "Airport",
      "name": "Miami International Airport",
      "iataCode": "MIA"
    },
    "arrivalTime": "2018-04-08T14:30:00-05:00"
  },
  "checkinUrl": "http://panam.org/onlinecheckin.html",
  "potentialAction": {
    "@type": "CheckInAction",
    "target": "http://panam.org/onlinecheckin.html"
  }
}
</script>

Microdata

<div itemscope itemtype="http://schema.org/FlightReservation">
  <meta itemprop="reservationNumber" content="TJK743"/>
  <link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Rebecca Anderson"/>
  </div>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
    <meta itemprop="flightNumber" content="914"/>
    <div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
      <meta itemprop="name" content="Pan American World Airways"/>
      <meta itemprop="iataCode" content="PA"/>
    </div>
    <div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="John F. Kennedy International Airport"/>
      <meta itemprop="iataCode" content="JFK"/>
    </div>
    <meta itemprop="departureTime" content="2018-04-07T18:20:00-06:00"/>
    <div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="Miami International Airport"/>
      <meta itemprop="iataCode" content="MIA"/>
    </div>
    <meta itemprop="arrivalTime" content="2018-04-08T14:30:00-05:00"/>
  </div>
  <link itemprop="checkinUrl" href="http://panam.org/onlinecheckin.html"/>
  <div itemprop="potentialAction" itemscope itemtype="http://schema.org/CheckInAction">
    <link itemprop="target" href="http://panam.org/onlinecheckin.html"/>
  </div>
</div>

Update a Flight

There might be cases where there's a change in the flight timing or other ticket details. In such cases, you can send an email with the updated flight and ticket details. You can make use of this syntax to highlight parts of your email, when the flight time is being modified. 

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "FlightReservation",
  "reservationNumber": "TJK743",
  "reservationStatus": "http://schema.org/Confirmed",
  "underName": {
    "@type": "Person",
    "name": "Rebecca Anderson"
  },
  "reservationFor": {
    "@type": "Flight",
    "flightNumber": "914",
    "airline": {
      "@type": "Airline",
      "name": "Pan American World Airways",
      "iataCode": "PA"
    },
    "departureAirport": {
      "@type": "Airport",
      "name": "John F. Kennedy International Airport",
      "iataCode": "JFK"
    },
    "departureTime": " 2018-04-07T18:20:00-06:00",
    "arrivalAirport": {
      "@type": "Airport",
      "name": "Miami International Airport",
      "iataCode": "MIA"
    },
    "arrivalTime": "2018-04-08T14:30:00-05:00"
  },
  "airplaneSeat": "5C",
  "airplaneSeatClass": {
    "@type": "AirplaneSeatClass",
    "name": "Economy"
  },
  "checkinUrl": "http://panam.org/onlinecheckin.html",
  "modifiedTime": "2018-04-07T11:30:00-08:00",
  "modifyReservationUrl": "http://panam.org/modifyreservation.html"
}
</script>

Microdata

<div itemscope itemtype="http://schema.org/FlightReservation">
  <meta itemprop="reservationNumber" content="TJK743"/>
  <link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Rebecca Anderson"/>
  </div>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
    <meta itemprop="flightNumber" content="914"/>
    <div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
      <meta itemprop="name" content="Pan American World Airways"/>
      <meta itemprop="iataCode" content="PA"/>
    </div>
    <div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="John F. Kennedy International Airport"/>
      <meta itemprop="iataCode" content="JFK"/>
    </div>
    <meta itemprop="departureTime" content="2018-04-07T18:20:00-06:00"/>
    <div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="Miami International Airport"/>
      <meta itemprop="iataCode" content="MIA"/>
    </div>
    <meta itemprop="arrivalTime" content="2018-04-08T14:30:00-05:00"/>
  </div>
  <meta itemprop="airplaneSeat" content="5C"/>
  <div itemprop="airplaneSeatClass" itemscope itemtype="http://schema.org/AirplaneSeatClass">
    <meta itemprop="name" content="Economy"/>
  </div>
  <meta itemprop="modifiedTime" content="2018-04-07T11:30:00-08:00"/>
  <link itemprop="checkInUrl" href="http://panam.org/onlinecheckin.html"/>
  <link itemprop="modifyReservationUrl" href="http://panam.org/modifyreservation.html"/>
</div>

Cancel a Flight

This syntax can be used to show the user that a ticket which was booked for a specific time has been cancelled.

JSON-LD

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "FlightReservation",
  "reservationNumber": "TJK743",
  "reservationStatus": "http://schema.org/Cancelled",
  "underName": {
    "@type": "Person",
    "name": "Rebecca Anderson"
  },
  "reservationFor": {
    "@type": "Flight",
    "flightNumber": "914",
    "airline": {
      "@type": "Airline",
      "name": "Pan American World Airways",
      "iataCode": "PA"
    },
    "departureAirport": {
      "@type": "Airport",
      "name": "John F. Kennedy International Airport",
      "iataCode": "JFK"
    },
    "departureTime": "2018-04-07T18:20:00-06:00",
    "arrivalAirport": {
      "@type": "Airport",
      "name": "Miami International Airport",
      "iataCode": "MIA"
    },
    "arrivalTime": "2018-04-08T14:30:00-05:00"
  },
  "checkinUrl": "http://panam.org/onlinecheckin.html",
  "modifiedTime": "2018-04-07T11:30:00-08:00",
  "modifyReservationUrl": "http://panam.org/modifyreservation.html"
}
</script>

Microdata

<div itemscope itemtype="http://schema.org/FlightReservation">
  <meta itemprop="reservationNumber" content="TJK743"/>
  <link itemprop="reservationStatus" href="http://schema.org/Cancelled"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Rebecca Anderson"/>
  </div>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
    <meta itemprop="flightNumber" content="914"/>
    <div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
      <meta itemprop="name" content="Pan American World Airways"/>
      <meta itemprop="iataCode" content="PA"/>
    </div>
    <div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="John F. Kennedy International Airport"/>
      <meta itemprop="iataCode" content="JFK"/>
    </div>
    <meta itemprop="departureTime" content="2018-04-07T18:20:00-06:00"/>
    <div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="Miami International Airport"/>
      <meta itemprop="iataCode" content="MIA"/>
    </div>
    <meta itemprop="arrivalTime" content="2018-04-08T14:30:00-05:00"/>
  </div>
  <meta itemprop="modifiedTime" content="2018-04-07T11:30:00-08:00"/>
  <link itemprop="checkInUrl" href="http://panam.org/onlinecheckin.html"/>
  <link itemprop="modifyReservationUrl" href="http://panam.org/modifyreservation.html"/>
</div>

Flight Ticket with Multiple Segments

When you're booking a ticket to a destination that doesn't have a direct flight, and has some transit, it's called a multiple segmented flight. In this case, the ticket will booked such that you reach an intermediate destination, and take another flight from there to your end destination. This syntax can be used to highlight parts of such emails.

JSON-LD

<script type="application/ld+json">
[
  {
    "@context": "http://schema.org",
    "@type": "FlightReservation",
    "reservationNumber": "TJK743",
    "reservationStatus": "http://schema.org/Confirmed",
    "underName": {
      "@type": "Person",
      "name": "Rebecca Anderson"
    },
    "reservationFor": {
      "@type": "Flight",
      "flightNumber": "761",
      "airline": {
        "@type": "Airline",
        "name": "Lufthansa",
        "iataCode": "LH"
      },
      "departureAirport": {
        "@type": "Airport",
        "name": "Indira Gandhi International Airport",
        "iataCode": "DEL"
      },
      "departureTime": "2018-03-04T11:00:00-05:00",
      "arrivalAirport": {
        "@type": "Airport",
        "name": "Frankfurt Airport",
        "iataCode": "FRA"
      },
      "arrivalTime": "2018-03-05T13:25:00-06:00"
    },
    "checkinUrl": "http://lufthansa.com/onlinecheckin.html"
  },
  {
    "@context": "http://schema.org",
    "@type": "FlightReservation",
    "reservationNumber": "TJK743",
    "reservationStatus": "http://schema.org/Confirmed",
    "underName": {
      "@type": "Person",
      "name": "Rebecca Anderson"
    },
    "reservationFor": {
      "@type": "Flight",
      "flightNumber": "400",
      "airline": {
        "@type": "Airline",
        "name": "Lufthansa",
        "iataCode": "LH"
      },
      "departureAirport": {
        "@type": "Airport",
        "name": "Frankfurt Airport",
        "iataCode": "FRA"
      },
      "departureTime": "2018-03-05T14:55:00-06:00",
      "arrivalAirport": {
        "@type": "Airport",
        "name": "John F. Kennedy International Airport",
        "iataCode": "JFK"
      },
      "arrivalTime": "2018-03-05T15:15:00-08:00"
    },
    "checkinUrl": "http://lufthansa.com/onlinecheckin.html"
  }
]
</script>

Microdata

<div itemscope itemtype="http://schema.org/FlightReservation">
  <meta itemprop="reservationNumber" content="TJK743"/>
  <link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Rebecca Anderson"/>
  </div>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
    <meta itemprop="flightNumber" content="761"/>
    <div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
      <meta itemprop="name" content="Lufthansa"/>
      <meta itemprop="iataCode" content="LH"/>
    </div>
    <div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="Indira Gandhi International Airport"/>
      <meta itemprop="iataCode" content="DEL"/>
    </div>
    <meta itemprop="departureTime" content="2018-03-04T11:00:00-05:00"/>
    <div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content=" Frankfurt Airport"/>
      <meta itemprop="iataCode" content="FRA"/>
    </div>
    <meta itemprop="arrivalTime" content="2018-03-05T13:25:00-06:00"/>
  </div>
  <meta itemprop="modifiedTime" content="2018-03-01T08:30:00-08:00"/>
</div>
<div itemscope itemtype="http://schema.org/FlightReservation">
  <meta itemprop="reservationNumber" content="TJK743"/>
  <link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Rebecca Anderson"/>
  </div>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
    <meta itemprop="flightNumber" content="400"/>
    <div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
      <meta itemprop="name" content="Lufthansa"/>
      <meta itemprop="iataCode" content="LH"/>
    </div>
    <div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="Frankfurt Airport"/>
      <meta itemprop="iataCode" content="FRA"/>
    </div>
    <meta itemprop="departureTime" content="2018-03-05T14:55:00-06:00"/>
    <div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="John F. Kennedy International Airport"/>
      <meta itemprop="iataCode" content="JFK"/>
    </div>
    <meta itemprop="arrivalTime" content="2018-03-05T15:15:00-08:00"/>
  </div>
  <meta itemprop="modifiedTime" content="2018-03-01T08:30:00-08:00"/>
</div>

Flight Ticket with Multiple passengers

When a ticket is booked for more than one passenger at once, this syntax can be used to highlight details of all passenger in the email listing.

JSON-LD

<script type="application/ld+json">

[
  {
    "@context": "http://schema.org",
    "@type": "FlightReservation",
    "reservationNumber": "TJK743",
    "reservationStatus": "http://schema.org/Confirmed",
    "underName": {
      "@type": "Person",
      "name": "Justin Case"
    },
    "reservationFor": {
      "@type": "Flight",
      "flightNumber": "914",
      "airline": {
        "@type": "Airline",
        "name": "Pan American World Airways",
        "iataCode": "PA"
      },
      "departureAirport": {
        "@type": "Airport",
        "name": "John F. Kennedy International Airport",
        "iataCode": "JFK"
      },
      "departureTime": "2018-03-04T11:00:00-05:00",
      "arrivalAirport": {
        "@type": "Airport",
        "name": "Miami International Airport",
        "iataCode": "MIA"
      },
      "arrivalTime": "2018-03-05T13:25:00-06:00"
    },
    "checkinUrl": "http://panam.org/onlinecheckin.html"
  },
  {
    "@context": "http://schema.org",
    "@type": "FlightReservation",
    "reservationNumber": "TJK743",
    "reservationStatus": "http://schema.org/Confirmed",
    "underName": {
      "@type": "Person",
      "name": "Rebecca Anderson"
    },
    "reservationFor": {
      "@type": "Flight",
      "flightNumber": "914",
      "airline": {
        "@type": "Airline",
        "name": "Pan American World Airways",
        "iataCode": "PA"
      },
      "departureAirport": {
        "@type": "Airport",
        "name": "John F. Kennedy International Airport",
        "iataCode": "JFK"
      },
      "departureTime": "2018-03-04T11:00:00-05:00",
      "arrivalAirport": {
        "@type": "Airport",
        "name": "Miami International Airport",
        "iataCode": "MIA"
      },
      "arrivalTime": "2018-03-05T13:25:00-06:00"
    },
    "checkinUrl": "http://panam.org/onlinecheckin.html"
  }

]
</script>

Microdata

<div itemscope itemtype="http://schema.org/FlightReservation">
  <meta itemprop="reservationNumber" content="TJK743"/>
  <link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Justin Case"/>
  </div>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
    <meta itemprop="flightNumber" content="914"/>
    <div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
      <meta itemprop="name" content="Pan American World Airways"/>
      <meta itemprop="iataCode" content="PA"/>
    </div>
    <div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="John F. Kennedy International Airport"/>
      <meta itemprop="iataCode" content="JFK"/>
    </div>
    <meta itemprop="departureTime" content="2018-03-04T11:00:00-05:00"/>
    <div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="Miami International Airport"/>
      <meta itemprop="iataCode" content="MIA"/>
    </div>
    <meta itemprop="arrivalTime" content="2018-03-05T13:25:00-06:00"/>
  </div>
<div itemscope itemtype="http://schema.org/FlightReservation">
  <meta itemprop="reservationNumber" content="TJK743"/>
  <link itemprop="reservationStatus" href="http://schema.org/Confirmed"/>
  <div itemprop="underName" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Rebecca Anderson"/>
  </div>
  <div itemprop="reservationFor" itemscope itemtype="http://schema.org/Flight">
    <meta itemprop="flightNumber" content="914"/>
    <div itemprop="airline" itemscope itemtype="http://schema.org/Airline">
      <meta itemprop="name" content="Pan American World Airways"/>
      <meta itemprop="iataCode" content="PA"/>
    </div>
    <div itemprop="departureAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="John F. Kennedy International Airport"/>
      <meta itemprop="iataCode" content="JFK"/>
    </div>
    <meta itemprop="departureTime" content="2018-03-05T14:55:00-06:00"/>
    <div itemprop="arrivalAirport" itemscope itemtype="http://schema.org/Airport">
      <meta itemprop="name" content="Miami International Airport"/>
      <meta itemprop="iataCode" content="MIA"/>
    </div>
    <meta itemprop="arrivalTime" content="2018-03-05T15:15:00-08:00"/>
  </div>

Order Confirmation

When you place an order with an online store, you receive a confirmation email that specifies the items that have been ordered etc. These details from the email can be highlighted and shown in a glance.

Basic Order Details

This syntax can be used to highlight the basic details such as the order number, the price, the item ordered, the website from which it was ordered etc.

JSON-LD

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Order",
"merchant": {
"@type": "Organization",
"name":  “saltychocolates.com"
},
"orderNumber": “64527137-237673",
"priceCurrency": "USD",
"price": “15.99",
"acceptedOffer": {
"@type": "Offer",
"itemOffered": {
"@type": "Product",
"name": “Chocolate coated Hazelnut crunchies”
},
"price": “15.99",
"priceCurrency": "USD",
"eligibleQuantity": {
"@type": "QuantitativeValue",
"value": “1"
}
}
}
</script> 

Microdata

<div itemscope itemtype="http://schema.org/Order"> 
<div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="saltychocolates.com"/>
</div>
<meta itemprop="orderNumber" content="64527137-237673"/>
<meta itemprop="priceCurrency" content="USD"/>
<meta itemprop="price" content=“15.99"/>
<div itemprop="acceptedOffer" itemscope itemtype="http://schema.org/Offer">
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Chocolate coated Hazelnut crunchies"/>
</div>
<meta itemprop="price" content=“15.99"/>
<meta itemprop="priceCurrency" content="USD"/>
<div itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
<meta itemprop="value" content="1"/>
</div>
</div>
</div> 

Order Confirmation with View Order Action

This syntax sends the email with the basic order details, and the View Order button will be embedded in the email listing.

JSON-LD

<script type="application/ld+json">
{
"@context": "http://schema.org”,
"@type": "Order",
"merchant": {
"@type": "Organization",
"name": "saltychocolates.com"
},
"orderNumber": "64527137-237673",
"orderStatus": "http://schema.org/OrderProcessing",
"priceCurrency": "USD",
"price": “15.99",
"priceSpecification": {
"@type": "PriceSpecification",
"validFrom": "2018-12-07T23:30:00-08:00"
},
"acceptedOffer": {
"@type": "Offer",
"itemOffered": {
"@type": "Product",
"name": "Chocolate coated Hazelnut crunchies",
"sku": "837428",
"url": "http://saltychocolates.com/837428",
"image": "http://saltychocolates.com/images/837428.jpg"
},
"price": “15.99",
"priceCurrency": "USD",
"eligibleQuantity": {
"@type": "QuantitativeValue",
"value": "1"
}
},
"url": "https://www.saltychocolates.com//summary/edit.html/orderID=64527137-237673",
"potentialAction": {
"@type": "ViewAction",
"url": "https://www.saltychocolates.com//summary/edit.html/orderID=64527137-237673"
}
}
</script> 

Microdata

<div itemscope itemtype="http://schema.org/Order">
<div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content=“www.saltychocolates.com"/>
</div>
<link itemprop="orderStatus" href="http://schema.org/OrderProcessing"/>
<meta itemprop="orderNumber" content="64527137-237673”/>
<meta itemprop="priceCurrency" content="USD"/>
<meta itemprop="price" content=“15.99"/>
<div itemprop="acceptedOffer" itemscope itemtype="http://schema.org/Offer">
<div itemprop="itemOffered" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Chocolate coated Hazelnut crunchies"/>
<link itemprop="url" href="http://saltychocolates.com/837428"/>
<link itemprop="image" href="http://saltychocolates.com/images/837428.jpg"/>
<meta itemprop="sku" content="837428"/>
</div>
<meta itemprop="price" content=“15.99"/>
<meta itemprop="priceCurrency" content="USD"/>
<div itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
<meta itemprop="value" content="1"/>
</div>
</div>
<link itemprop="url" href="https://www.saltychocolates.com//summary/edit.html/orderID=64527137-237673"/>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://www.saltychocolates.com//summary/edit.html/orderID=64527137-237673"/>
</div>
<div itemprop="priceSpecification" itemscope itemtype="http://schema.org/PriceSpecification">
<meta itemprop="validFrom" content="2018-12-07T23:30:00-08:00"/>
</div>
</div> 

Order Confirmation with Billing Details

If you want to highlight the payment details of the order, along with other order details this syntax can be used.

JSON-LD

<script type="application/ld+json”>
{
"@context": "http://schema.org",
"@type": "Order",
"merchant": {
"@type": "Organization",
"name": "www.saltychocolates.com"
},
"orderNumber": "64527137-237673",
"priceCurrency": "USD",
"price": “15.99",
"priceSpecification": {
"@type": "PriceSpecification",
"validFrom": "2018-12-07T23:30:00-08:00"
},
"acceptedOffer": [
{
"@type": "Offer",
"itemOffered": {
"@type": "Product",
"name": "Chocolate coated Hazelnut crunchies",
"sku": "837428”,
"url": "http://saltychocolates.com/837428 ",
"image": "http://saltychocolates.com/images/837428.jpg"
},
"price": “15.99",
"priceCurrency": "USD",
"eligibleQuantity": {
"@type": "QuantitativeValue",
"value": “1"
},
"seller": {
"@type": "Organization"
"name": “Salty Chocolates"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Product",
"name": "Chocolate coated Hazelnut crunchies",
"sku": "837428",
"url": "http://saltychocolates.com/837428",
"image": "http://saltychocolates.com/images/837428.jpg"
},
"price": “15.99",
"priceCurrency": "USD",
"eligibleQuantity": {
"@type": "QuantitativeValue",
"value": "1"
},
"seller": {
"@type": "Organization",
"name": “Salty Chocolates"
}   
}
],
"url": "https://www.saltychocolates.com//summary/edit.html/orderID=64527137-237673",
"potentialAction": {
"@type": "ViewAction",
"url": "https://www.saltychocolates.com//summary/edit.html/orderID=64527137-237673"
},
"orderStatus": "http://schema.org/OrderProcessing",
"paymentMethod": {
"@type": "PaymentMethod",
"name": "http://schema.org/CreditCard"
},
"paymentMethodId": "**** **** **** 1234",
"orderDate": "2018-11-07T23:30:00-08:00",
"isGift": "false",
"discount": "0.90",
"discountCurrency": "USD",
"customer": {
"@type": "Person",
"name": “Rebecca Anderson"
},
"billingAddress": {
"@type": "PostalAddress",
"name": “Zylker Inc.",
"streetAddress": “43, Shirley Avenue",
"addressLocality": “North Carolina",
"addressRegion": "CA",   
"addressCountry": "USA"
}
}
</script> 

Microdata

<div itemscope itemtype="http://schema.org/Order">
  <div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
    <meta itemprop="name" content="www.saltychocolates.com"/>
  </div>
  <meta itemprop="orderNumber" content="64527137-237673 "/>
  <meta itemprop="priceCurrency" content="USD"/>
  <meta itemprop="price" content="15.99"/>
  <div itemprop="acceptedOffer" itemscope itemtype="http://schema.org/Offer">
    <div itemprop="itemOffered" itemscope itemtype="http://schema.org/Product">
      <meta itemprop="name" content="Chocolate coated Hazelnut crunchies"/>
      <meta itemprop="sku" content="837428"/>
      <link itemprop="url" href="http://saltychocolates.com/837428"/>
      <link itemprop="image"href="http://saltychocolates.com/images/837428.jpg"/>
    </div>
    <meta itemprop="price" content="15.99"/>
    <meta itemprop="priceCurrency" content="USD"/>
    <div itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
      <meta itemprop="value" content="1"/>
    </div>
    <div itemprop="seller" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Salty Chocolates"/>
    </div>
  </div>
  <div itemprop="acceptedOffer" itemscope itemtype="http://schema.org/Offer">
    <div itemprop="itemOffered" itemscope itemtype="http://schema.org/Product">
      <meta itemprop="name" content="Chocolate coated Hazelnut crunchies"/>
      <meta itemprop="sku" content="837428"/>
      <link itemprop="url" href="http://saltychocolates.com/837428"/>
      <link itemprop="image" href="http://saltychocolates.com/images/837428.jpg"/>
    </div>
    <meta itemprop="price" content="15.99"/>
    <meta itemprop="priceCurrency" content="USD"/>
    <div itemprop="eligibleQuantity" itemscope itemtype="http://schema.org/QuantitativeValue">
      <meta itemprop="value" content="1"/>
    </div>
    <div itemprop="seller" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Salty Chocolates"/>
    </div>
  </div>
  <link itemprop="url" href="https://www.saltychocolates.com//summary/edit.html/orderID=64527137-237673"/>
  <div itemprop="potentialAction" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" https://www.saltychocolates.com//summary/edit.html/orderID=64527137-237673"/>
  </div>
  <link itemprop="orderStatus" href="http://schema.org/OrderProcessing"/>
  <div itemprop="paymentMethod" itemscope itemtype="http://schema.org/PaymentMethod">
    <meta itemprop="name" content="http://schema.org/CreditCard"/>
  </div>
  <meta itemprop="paymentMethodId" content="**** **** **** 1234"/>
  <meta itemprop="orderDate" content="2018-11-07T23:30:00-08:00"/>
  <meta itemprop="isGift" content="false"/>
  <meta itemprop="discount" content="0.90"/>
  <meta itemprop="discountCurrency" content="USD"/>
  <div itemprop="customer" itemscope itemtype="http://schema.org/Person">
    <meta itemprop="name" content="Rebecca Anderson"/>
  </div>
  <div itemprop="billingAddress" itemscope itemtype="http://schema.org/PostalAddress">
    <meta itemprop="name" content="Zylker Inc."/>
    <meta itemprop="streetAddress" content="42, Shirley Avenue"/>
    <meta itemprop="addressLocality" content="North Carolina"/>
    <meta itemprop="addressRegion" content="CA"/>
    <meta itemprop="addressCountry" content="USA"/>
  </div>
  <div itemprop="priceSpecification" itemscope itemtype="http://schema.org/PriceSpecification">
    <meta itemprop="validFrom" content="2018-12-07T23:30:00-08:00"/>
  </div>
</div> 

Package Tracking

Basic Package Tracking

The details of a courier service that was used to send a package, the tracking ID etc. can be highlighted when an email specifying the tracking details is sent. 

JSON-LD

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ParcelDelivery",
"deliveryAddress": {
"@type": "PostalAddress",
"name": “Chocolate House",
"streetAddress": "42 Shirley Ave.",
"addressLocality": “West Chicago",
"addressRegion": "CA",
"addressCountry": "US",
"postalCode": “60185"
},
"expectedArrivalUntil": "2018-03-12T12:00:00-08:00",
"carrier": {
"@type": "Organization",
"name": “DHL"
},
"itemShipped": {
"@type": "Product",
"name": "Chocolate coated Hazelnut crunchies"
},
"partOfOrder": {
"@type": "Order",
"orderNumber": "64527137-237673",
"merchant": {
"@type": "Organization",
"name": “saltychocolates.com"
}
}
}
</script> 

Microdata

<div itemscope itemtype="http://schema.org/ParcelDelivery">
<div itemprop="deliveryAddress" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content="Chocolate House"/>
<meta itemprop="streetAddress" content="42 Shirley Ave."/>
<meta itemprop="addressLocality" content="West Chicago"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="addressCountry" content="US"/>
<meta itemprop="postalCode" content=“60185”/>
</div>
<meta itemprop="expectedArrivalUntil" content="2018-03-12T12:00:00-08:00"/>
<div itemprop="carrier" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content=“DHL"/>
</div>
<div itemprop="itemShipped" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Chocolate coated Hazelnut crunchies"/>
</div>
<div itemprop="partOfOrder" itemscope itemtype="http://schema.org/Order">
<meta itemprop="orderNumber" content="64527137-237673"/>
<div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="saltychocolates.com"/>
</div>
</div>
</div> 

Package Tracking with Shipping Details

In addition to the basic package tracking, you can also embed the other details of the shipment in the script to highlight these parts.

JSON-LD

<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "ParcelDelivery",
"deliveryAddress": {
"@type": "PostalAddress",
"name":  “Rebecca Anderson",
"streetAddress": "42 Shirley Ave.",
"addressLocality": "West Chicago",
"addressRegion": "CA",
"addressCountry": "US",
"postalCode": "60185"
},
"originAddress": {  
"@type": "PostalAddress",
"name":  “Rebecca Anderson",
"streetAddress": "42 Shirley Ave.",
"addressLocality": "West Chicago",
"addressRegion": "CA",
"addressCountry": "US",
"postalCode":  “60185" 
}, 
"expectedArrivalFrom": "2018-07-13T12:00:00-08:00",
"expectedArrivalUntil": "2018-07-17T12:00:00-08:00", 
"carrier": {   
"@type": "Organization",  
"name":  “DHL",
"url": "http://dhl.com/
},
"itemShipped": {   
"@type": "Product",
"name": "Chocolate coated Hazelnut crunchies",
"url": "http://saltychocolates.com/837428",
"image": "http://saltychocolates.com/images/837428.jpg",
"sku": "837428",
"description": "Chocolate coated Hazelnut crunchies",
"brand": {
"@type": "Brand",
"name":  “Salty Chocolates"
},   
}, 
"trackingNumber": "3453291231", 
"trackingUrl": "http://dhl.com/track/3453291231", 
"potentialAction": {
"@type": "TrackAction",
"url": "http://dhl.com/track/3453291231"
},
"hasDeliveryMethod": {  
"@type": "ParcelService",
"name": "http://schema.org/ParcelService"
},
"partOfOrder": {
"@type": "Order",  
"orderNumber": "64527137-237673",
"merchant": {
"@type": "Organization",
"name":  “Salty Chocolates",
"sameAs": "http://www.saltychocolates.com"
},
"orderStatus": "http://schema.org/OrderInTransit"
}
}
</script> 

Microdata

<div itemscope itemtype="http://schema.org/ParcelDelivery">
<div itemprop="deliveryAddress" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content=“Rebecca Anderson"/>
<meta itemprop="streetAddress" content="42 Shirley Ave."/>
<meta itemprop="addressLocality" content=“West Chicago"/>
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="addressCountry" content="US"/>  
<meta itemprop="postalCode" content=“60185"/>
</div>
<div itemprop="originAddress" itemscope itemtype="http://schema.org/PostalAddress">
<meta itemprop="name" content=“Rebecca Anderson"/>
<meta itemprop="streetAddress" content="42 Shirley Ave."/>
<meta itemprop="addressLocality" content=“West Chicago"/>   
<meta itemprop="addressRegion" content="CA"/>
<meta itemprop="addressCountry" content="US"/>  
<meta itemprop="postalCode" content=“60185"/>
</div>
<meta itemprop="expectedArrivalFrom" content="2018-07-13T12:00:00-08:00"/>
<meta itemprop="expectedArrivalUntil" content="2018-07-17T12:00:00-08:00"/>
<div itemprop="carrier" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content=“DHL"/>
<link itemprop="url" href="http://dhl.com/"/>
</div>
<div itemprop="itemShipped" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Chocolate coated Hazelnut crunchies"/>
<link itemprop="url" href="http://saltychocolates.com/837428"/>
<link itemprop="image" href="http://saltychocolates.com/images/837428.jpg"/>
<meta itemprop="sku" content="837428"/>
<meta itemprop="description" content="Chocolate coated Hazelnut crunchies"/>
<div itemprop="brand" itemscope itemtype="http://schema.org/Brand">
<meta itemprop="name" content=“Salty Chocolates"/>
</div>
</div>
<meta itemprop="trackingNumber" content="3453291231"/>
<link itemprop="trackingUrl" href="http://dhl.com/track/3453291231"/>
<div itemprop="potentialAction" itemscope itemtype="http://schema.org/TrackAction">
<link itemprop="url" href="http://dhl.com/track/3453291231"/>
</div>
<div itemprop="hasDeliveryMethod" itemscope itemtype="http://schema.org/ParcelService">
<meta itemprop="name" content="http://schema.org/ParcelService"/>
</div>
<div itemprop="partOfOrder" itemscope itemtype="http://schema.org/Order">
<meta itemprop="orderNumber" content="64527137-237673"/>
<div itemprop="merchant" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content=“Salty Chocolates"/>
<link itemprop="sameAs" href="http://www.saltychocolates.com"/>
</div>
<link itemprop="orderStatus" href="http://schema.org/OrderInTransit"/>
</div>
</div> 

Registration form for highlighting Email Snippets:

For Zoho Mail to identify the script that you're embedding in your email, and to ensure that the domain it's being sent from is valid, it has to be registered with us.

Follow this link to register with us, so that your Email Snippets can be identified by Zoho Mail. The domain registration process will be completed after a review of the domain. The organization that has sent the registration request will be contacted, in case there are any further clarifications in this regard.

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohomail.com