Service


Click here for a complete list of operations.

SendTemplateAttachments

Send Email with multiple attachments .
Arguments:

LoginEmail: Login Email of Spread account.
APIKey: API KEY of Spread.
[To]: The Recipient. attention: The recipient defined in the template campaign will not be sent.
Subject: the email subject, it will be the campaign subject if empty.
TemplateId: Campaign ID.
SubstitutionVars: tag's value in the content.
CreativeLanguage: Creative Language.
files:Attachment structure,only for file types below :zip pdf docx doc xlsx xls rtf txt gif jpeg jpg png tif bmp ppt pptx
return sent result (string).

Remarks: use to send attachments.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /service.asmx HTTP/1.1
Host: service.uat.fusionbank.cloud
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://service.reasonablespread.com/SendTemplateAttachments"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SendTemplateAttachments xmlns="http://service.reasonablespread.com/">
      <LoginEmail>string</LoginEmail>
      <APIKey>string</APIKey>
      <To>string</To>
      <TemplateId>string</TemplateId>
      <Subject>string</Subject>
      <SubstitutionVars>string</SubstitutionVars>
      <CreativeLanguage>string</CreativeLanguage>
      <files>
        <CampaignAttachment>
          <displayName>string</displayName>
          <file>base64Binary</file>
          <fileType>string</fileType>
        </CampaignAttachment>
        <CampaignAttachment>
          <displayName>string</displayName>
          <file>base64Binary</file>
          <fileType>string</fileType>
        </CampaignAttachment>
      </files>
    </SendTemplateAttachments>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <SendTemplateAttachmentsResponse xmlns="http://service.reasonablespread.com/">
      <SendTemplateAttachmentsResult>string</SendTemplateAttachmentsResult>
    </SendTemplateAttachmentsResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /service.asmx HTTP/1.1
Host: service.uat.fusionbank.cloud
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SendTemplateAttachments xmlns="http://service.reasonablespread.com/">
      <LoginEmail>string</LoginEmail>
      <APIKey>string</APIKey>
      <To>string</To>
      <TemplateId>string</TemplateId>
      <Subject>string</Subject>
      <SubstitutionVars>string</SubstitutionVars>
      <CreativeLanguage>string</CreativeLanguage>
      <files>
        <CampaignAttachment>
          <displayName>string</displayName>
          <file>base64Binary</file>
          <fileType>string</fileType>
        </CampaignAttachment>
        <CampaignAttachment>
          <displayName>string</displayName>
          <file>base64Binary</file>
          <fileType>string</fileType>
        </CampaignAttachment>
      </files>
    </SendTemplateAttachments>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <SendTemplateAttachmentsResponse xmlns="http://service.reasonablespread.com/">
      <SendTemplateAttachmentsResult>string</SendTemplateAttachmentsResult>
    </SendTemplateAttachmentsResponse>
  </soap12:Body>
</soap12:Envelope>