Schedule an email
SCHEDULE EMAIL
Description | Create a HTML email with plain text alternative; can add parameters to create scheduled email. |
Returns | Email id of the newly created email and job id |
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>scheduleemail</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 >
<senddate>2013-01-01</senddate>
<sendtime>18:00:01</sendtime>
<status>P (pending) or T (test)</status>
<testsend>1 (yes) or 0 (no)</testsend>
<testsendemail>test email address</testsendemail>
<lists>comma delimited list of listids</lists>
<excludedlists>comma delimited list of listids to exclude</excludedlists>
<trackclicks>1 (yes) or 0 (no)</trackclicks>
<trackopens>1 (yes) or 0 (no)</trackopens>
<viewasawebpage>1 (yes) or 0 (no)</viewasawebpage>
<sendtime>18:00:01</sendtime>
<status>P (pending) or T (test)</status>
<testsend>1 (yes) or 0 (no)</testsend>
<testsendemail>test email address</testsendemail>
<lists>comma delimited list of listids</lists>
<excludedlists>comma delimited list of listids to exclude</excludedlists>
<trackclicks>1 (yes) or 0 (no)</trackclicks>
<trackopens>1 (yes) or 0 (no)</trackopens>
<viewasawebpage>1 (yes) or 0 (no)</viewasawebpage>
</command>
</criticalimpact>
RETURN SAMPLE (SUCCESSFUL)
<criticalimpact>
<messageid>43461</ messageid >
<jobid>345221</jobid>
</criticalimpact>