1. Message configuration

The TypeResolver class

Version:

The Email Experience Manager (EXM) enables you to create different types of messages. To map a message type to the appropriate class in code, EXM uses the TypeResolver class.

EXM provides the following message type classes that are derived from the MessageItem base abstract class:

  • TextMail
  • HtmlMail
  • WebPageMail
  • ABTestMessage

For customization purposes, you can create a custom message type class to be used in EXM or delete any of the existing classes.

Depending on the item type, the GetCorrectMessageObject method of the TypeResolver class returns:

  • For not a message item, the method returns null.
  • For a message item, the method returns one of the following types – text mail, HTML mail, webpage mail, or A/B test message.

The following table shows how EXM message templates correspond to the message type classes:

Message templateMessage type class
HTML fileThe ABTestMessage class
AnnouncementThe ABTestMessage class
Alternating ColumnsThe ABTestMessage class
Call to Action FocusThe ABTestMessage class
Image FocusThe ABTestMessage class
Left Image BlockThe ABTestMessage class
Right Image BlockThe ABTestMessage class
Simple HTML MessageThe HtmlMail class
Plain Text MessageThe TextMail class
Existing PageThe WebPageMail class
Note

The ABTestMessage class is a descendant of the WebPageMail class. It is generally used for messages that contain two or more testable variations, except for the HTML file template, which does not support A/B testing. A/B tests also cannot be performed on the message types that are mapped to the other classes: Simple HTML Message, Plain Text Message, and Existing Page.

If you have suggestions for improving this article, let us know!