|
Messages
What is a message
MessagesNuntium is about sending and receiving messages Application Originated messagesMessages sent from your application into Nuntium and then into the world are called Application Originated messages. One of the most important fields of these kind of message is the "to" field, This field must be prefixed with a protocol in order to send it via a channel. Read more about this. Application Terminated messagesMessages sent from the world into Nuntium and then into your application are called Application Terminated messages. Structure of a messageA message consists of the following fields:
Custom attributesBesides the basic fields, any message can also contain any number of custom attributes. This is used for example in SMS messages to specify the "country" or "carrier". These are the custom attributes reserved for Nuntium use:
Email Custom attributesWhen sendings messages that will be sent via SMTP, custom attributes that start with references_ will be sent in the References header. For example: AOMessage: references_foo => 123 references_bar => 456 Email: References: <123@foo.nuntium>, <456@bar.nuntium> When receiving messages via POP3, references in the nuntium namespace (like <xxx@xxx.nuntium>) will be converted to references_ custom attributes of AT messages. Additionally, a reply_to custom attribute will be set with the GUID of the message for which the email is a reply to. |