Glossary Item Box

Shipper 1.4 Structured Solutions

Customizing the Confirmation Email

While you are processing shipments, up to three emails may be sent automatically: a ship notification email from the carrier, an order status change email from the underlying store (if your store software supports this), and a ship confirmation email from Shipper. This article describes how you can customize the confirmation email that Shipper sends.

The confirmation email is actually sent by Shipper Service using the "SendMail" function of the underlying store. Normally a fixed format is used to create the email, but you can customize the email by creating an email template file called EmailTemplate.config in the Shipper Service directory. If Shipper Service finds the template file, it will use it to create the email.

The email template has two sections: one for the subject line and one for the body of the email. Each section is a mix of text and tokens. During processing the tokens are replaced with the actual values that are appropriate for the shipment.

Sample EmailTemplate.config file (source)

<EmailTemplate> 

<Format>Text</Format>

<Subject>Order {OrderNumber} Shipment Notification</Subject> 

<Body>
Dear {FirstName} {LastName},

A shipment from order {OrderNumber} is scheduled to be shipped on {ShipDate} from {StoreName}. To determine the shipping status for this order, please sign on to your account at {StoreUrl} and review the order history.

Sincerely,
{StoreName}
</Body>

</EmailTemplate>

The word between the <Format> and </Format> markers indicates the format of the email. Everything between the <Subject> and </Subject> markers will be used for the email subject. Everything between the <Body> and </Body> markers will be used for the body of the email. Tokens are surrounded by curly braces.

Email Formats

Text Sends a plain text email.
HTML Sends an HTML formatted email.

Email Template tokens

{FirstName} The first name of the customer.
{LastName} The last name of the customer.
{OrderNumber} The order number.
{ShipDate} The shipment pickup date.
{ShippingMethod} The name of the shipping method.
{StoreName} The name of the store.
{StoreUrl} The URL of the store home page.
{TrackingNumber} The tracking number.

Summary

  1. Create a plain text file in the Shipper Service directory on the web site called EmailTemplate.config using the format shown above (or copy this version of EmailTemplate.config to your web site).
  2. Fill in the subject and body sections using the tokens shown above.

Notes

 

 


Copyright © 2007 Structured Solutions