Overview

Skill Level: Any

Prerequisites

This interface returns a preview of a mailing template. If a contact email address is provided in the request, the preview will include personalization for the specified contact.

Step-by-step

  1. Syntax of the request and response SOAP 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 <soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/”
    xmlns:sil=”SilverpopApi:EngageService.SessionHeader”
    xmlns:sil1=”SilverpopApi:EngageService.MailManagement.UserActions”>
    <soapenv:Header>
    <sil:sessionHeader>
    <sil:sessionid>BDBA0A445AB983709A924AB64706D3A4</sil:sessionid>
    </sil:sessionHeader>
    </soapenv:Header>
    <soapenv:Body>
    <sil1:PreviewMailing>
    <sil1:MailingId>2977691</sil1:MailingId>
    </sil1:PreviewMailing>
    </soapenv:Body>
    </soapenv: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:Envelope xmlns:envelope=”http://schemas.xmlsoap.org/soap/envelope/”>
    <envelope:Header/>
    <envelope:Body xmlns=”SilverpopApi:EngageService.MailManagement.UserActions”>
    <RESULT>
    <SUCCESS>true</SUCCESS>
    <HTMLBody><![CDATA[<html><head> </head><body><CENTER><FONT SIZE=”1″
    COLOR=”#000000″ FACE=”ARIAL”>If you are unable to see the message below, <A
    href=”http://recp.spqa1.com/ui/modules/display/previewClickToView.jsp”>click here to
    view</A>.</FONT><font face=”ARIAL” color=”#808080″
    size=”2″><br></font></CENTER><p>%%FIRST_NAME%%</p><p>Here is some personalization within
    personalization done by referencing a list field within another list
    field:</p><p>%%IGNORE_1%%</p><p></p><p>Here is some personalization within personalization done
    by referencing a list field within API
    Substitution:</p><p>%%SUB_VALUE_1%%</p></body></html>]]></HTMLBody>
    <AOLBody/>
    <TextBody/>
    <SpamScore>Score is: 2.3/5.0
    ‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐
    0.0 MIME_HTML_MOSTLY BODY: Multipart message mostly text/html MIME
    0.0 HTML_MESSAGE BODY: HTML included 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.0 AWL AWL: From: address is in the auto white‐list</SpamScore>
    </RESULT>
    </envelope:Body>
    </envelope:Envelope>
    Β  Β 

Join The Discussion

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