E-mail Template

Available in: Enterprise edition.

 

Select the SystemTools -> Email -> Templates menu option to customize the e-mail sent out.  The Email Template form will be displayed.

 

Select Add to create a new template or Edit to edit an existing template setup.  Fill in the following fields:

 

 

Select the View button to view or edit the template.

 

The XML object used in inserting details about the shipment is the same as the XML defined in the GetShipment ASP page.

 

An e-mail template can be defined for each organization in WorldLink. To configure a unique template for an organization/site group, indicate the organization/site group identifier in the XRefGroup tag. Org/site groups without a defined template use the default template (XRefGroup Id of -1).

 

The E-mail XML is designed to list each package in a shipment.

 

<?xml version="1.0"?>

<Email>

<XRefGroup id="-1">

<Server>smtp.email.server.com</Server>

<From>someone@someplace.com</From>

<Subject>Email Notification</Subject>

<Header>

<Line>Dear [//Shipment/Contact],</Line>

<Line></Line>

<Line>This email message is to inform you that the items you ordered were shipped today.</Line>

<Line></Line>

<Line>It was shipped to:</Line>

<Line>[//Shipment/Address1]</Line>

<Line>[//Shipment/Address2]</Line>

<Line>[//Shipment/Address3]</Line>

<Line>[//Shipment/City]  [//Shipment/State], [//Shipment/Zip]</Line>

<Line></Line>

</Header>

<Body>

<Line>Tracking Number: [//Shipment/Package/TrackingNumber]</Line>

<IncludeLink>0</IncludeLink>

</Body>

<Footer>

<Line></Line>

<Line>Thank you for your order</Line>

<Line></Line>

<Line>[//Shipment/Organization/OrgName]</Line>

</Footer>

<Attachment></Attachment>

</XRefGroup>

</Email>

 

 

You can add variables to be used in the email template that are replaced during the XML replacement.  These variables are indicated by braces {}.  When the value between the braces is a standard variable, the {VAR} will be replaced with the actual value of the variable.  The variables available are:

 

<Line>{CARRIER_CODE} - Shipping Carrier Code </Line>

<Line>{CARRIER_DESCRIPTION} - Shipping Carrier Description </Line>

<Line>{SHIPVIA_CODE} - Shipping ShipVia Code </Line>

<Line>{SHIPVIA_DESCRIPTION} - Shipping ShipVia Description </Line>

<Line>{WEIGHT_UOM} - Package Weight Unit Of Measure (i.e. LB or KG) </Line>

<Line>{DIM_UOM} - Package Dimensions Unit Of Measure (i.e. IN or CM) </Line>

<Line>{SHIPMENT_SOURCE} - Shipment Source (i.e. Host or Manual) </Line>

<Line>{PAYMENT_TYPE}</Line>

<Line>{DEPARTMENTCODE} - Department Code </Line>

<Line>{DEPARTMENTDESCRIPTION} - Department Description </Line>