Overview

Skill Level: Intermediate

Step-by-step

  1. Syntax of the request and response XML for PreviewMailing

    Operation <PreviewMailing>      
    Elements MailingId  Numeric identifier for the mailing template to be exported.     
      RecipientEmail Optional  Email address of the contact that will be used to display
    personalization 
     
    Example
    <Envelope>
    <Body>
    <PreviewMailing>
    <MailingId>59294</MailingId>
    </PreviewMailing>
    </Body>
    </Envelope>
         
    Response <RESULT>      
    Elements SUCCESS TRUE if successful     
      HTMLBody  Returns the contents of the HTML body with personalization substituted.     
      AOLBody  Returns the contents of the AOL body with personalization substituted.     
      TextBody  Returns the contents of the Text body with personalization substituted.     
      SPAMScore  Returns the SPAM score based on the contents of the mailing template.     
    Example
    <Envelope>
    <Body>
    <RESULT>
    <SUCCESS>TRUE</SUCCESS>
    <HTMLBody>
    <![CDATA[<html><HEAD><TITLE></TITLE></HEAD><BODY>
    <P>Hello World,</P><br><P>I am sending this test message
    with personalization:</P><br>
    %%FIRST_NAME%%
    <br></BODY></html>]]>
    </HTMLBody>
    <TextBody/>
    <SpamScore>Scoreis:2.5/5.0---
    0.0 MIME_HTML_MOSTLY BODY: Multipart message mostly text/html
    MIME 0.0 HTML_MESSAGE BODY: HTMLincluded in message 1.1
    MPART_ALT_DIFF BODY: HTML and text parts are different 0.
    1 RDNS_NONE Delivered to trusted network by a host with no rDNS
    1.2 AWL AWL: From: address is in the auto white-list
    </SpamScore>
    </RESULT>
    </Body>
    </Envelope>
         

Join The Discussion

Your email address will not be published. Required fields are marked *