The following example Email publication receives email messages at demo@myserver, where myserver is the host name, and publishes notification messages to topic SAMPLE_TOPIC.
Note: Email addresses cannot be duplicated across Email publications. There must be a unique email address for each email publication. Email addresses are case-insensitive.
Notification Content
The notification content that is generated by the email publisher includes the following keywords:
The following is a sample JSON notification message published by the Email publisher upon receiving an email to address 'demo@somehost.com':
{
"fns_type": "email_publisher",
"email_publisher_to": "demo@somehost.com",
"email_publisher_subject": "MIME message from sender",
"email_publisher_content{0}": "Testing Email",
"email_publisher_content_type{0}": "text/plain",
"email_publisher_from": "sender@somehost.com",
"email_publisher_received": "Thu May 17 11:15:46 PDT 2012",
"email_publisher_sent": "Thu May 17 11:15:46 PDT 2012",
"email_publisher_attachment{0}": "C:\\Temp\\demo246129673106713_canada.xsd"
}
Note: The keywords of the above JSON message can be customized by changing the config.xml file. No code changes are required. For more information, see Email Publisher Settings.