Hi Team,
We are looking to send an email via the API (which has been achieved). We now wish to call a pre formatted email template using the API.
Couple questions:
1. What options do we have in regards to creating a template and making it available in the portal? I.e. can we create the email template in 'myportal' and call it using the API?
2. How do we upload an email template to the 'CFS' (customer file store) If this is the method we need to use.
Below is the code for email send.
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<Request xmlns="http://ws.easylink.com/RequestResponse/2011/01" xmlns:ns2="http://ws.easylink.com/JobSubmit/2011/01">
<ReceiverKey>https://messaging.easylink.com/soap/sync</ReceiverKey>
<Authentication>
<XDDSAuth>
<RequesterID>USERNAME</RequesterID>
<Password>PASSWORD</Password>
</XDDSAuth>
</Authentication>
</Request>
</S:Header>
<S:Body>
<ns2:JobSubmitRequest xmlns="http://ws.easylink.com/RequestResponse/2011/01" xmlns:ns2="http://ws.easylink.com/JobSubmit/2011/01">
<ns2:DocumentSet/>
<ns2:Message>
<ns2:JobOptions>
<ns2:EnhancedEmailOptions>
<ns2:Subject>This is a message for test</ns2:Subject>
</ns2:EnhancedEmailOptions>
</ns2:JobOptions>
<ns2:Destinations>
<ns2:DeliveryItemGeneric type="internet">
<ns2:Address>ssluiter@axient.com.au</ns2:Address>
</ns2:DeliveryItemGeneric>
</ns2:Destinations>
<ns2:Reports>
<ns2:DeliveryReport>
<ns2:DeliveryReportType>detail</ns2:DeliveryReportType>
</ns2:DeliveryReport>
</ns2:Reports>
<ns2:Contents>
<ns2:Part>
<ns2:Document>
<ns2:DocType>text</ns2:DocType>
<ns2:DocData format="text">
Here is the message for test
</ns2:DocData>
<ns2:CharacterSet>iso-8859-1</ns2:CharacterSet>
</ns2:Document>
<ns2:Treatment>body</ns2:Treatment>
</ns2:Part>
</ns2:Contents>
</ns2:Message>
</ns2:JobSubmitRequest>
</S:Body>
</S:Envelope>
Hope to hear from you soon.
thanks in advance.