Add a Message using the API
EMAIL ADD
Description | Create a HTML email with plain text alternative. |
Returns | Email id of the newly created email
|
XML Tags | If certain special characters appear in your email content or subject, you must substitute the HTML code for the character to ensure that the character is passed correctly. o Ampersand: Replace & with %26 o Percent: Replace % with %25 o Pound: Replace # with %23 o Plus : Replace + with %2B |
CALLING SAMPLE
<criticalimpact>
<login>
<username>xxxxxxx</username>
<password>xxxxxxxx</password>
</login>
<command>
<action>emailadd</action>
<emailsubject>Sample Email Subject</ emailsubject >
<emailfrom>Name Shown <emailaddress@domain.com></ emailfrom >
<emailhtml><![CDATA[Your HTML Email, complete HTML format]]></ emailhtml>
<emailtext><![CDATA[Your Plain Text Email]]></ emailtext >
</command>
</criticalimpact>
RETURN SAMPLE (SUCCESSFUL)
<criticalimpact>
<messageid>43461</ messageid >
</criticalimpact>