Service


Click here for a complete list of operations.

SendWithAttachment

Send Email with multi attachment .
Arguments:

loginEmail: Login Email of Spread.
password: Password or API KEY of Spread.
CampaignName: CampaignName
FromName: Display Name
[To]: The recipient
replyTo:Reply Email address
Subject: Email subject.
Body: Email body.
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.rspread.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://service.reasonablespread.com/SendWithAttachment"

<?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>
    <SendWithAttachment xmlns="http://service.reasonablespread.com/">
      <LoginEmail>string</LoginEmail>
      <Password>string</Password>
      <CampaignName>string</CampaignName>
      <From>string</From>
      <FromName>string</FromName>
      <To>string</To>
      <replyTo>string</replyTo>
      <Subject>string</Subject>
      <Body>string</Body>
      <files>
        <CampaignAttachment>
          <displayName>string</displayName>
          <file>base64Binary</file>
          <fileType>string</fileType>
        </CampaignAttachment>
        <CampaignAttachment>
          <displayName>string</displayName>
          <file>base64Binary</file>
          <fileType>string</fileType>
        </CampaignAttachment>
      </files>
    </SendWithAttachment>
  </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>
    <SendWithAttachmentResponse xmlns="http://service.reasonablespread.com/">
      <SendWithAttachmentResult>string</SendWithAttachmentResult>
    </SendWithAttachmentResponse>
  </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.rspread.com
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>
    <SendWithAttachment xmlns="http://service.reasonablespread.com/">
      <LoginEmail>string</LoginEmail>
      <Password>string</Password>
      <CampaignName>string</CampaignName>
      <From>string</From>
      <FromName>string</FromName>
      <To>string</To>
      <replyTo>string</replyTo>
      <Subject>string</Subject>
      <Body>string</Body>
      <files>
        <CampaignAttachment>
          <displayName>string</displayName>
          <file>base64Binary</file>
          <fileType>string</fileType>
        </CampaignAttachment>
        <CampaignAttachment>
          <displayName>string</displayName>
          <file>base64Binary</file>
          <fileType>string</fileType>
        </CampaignAttachment>
      </files>
    </SendWithAttachment>
  </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>
    <SendWithAttachmentResponse xmlns="http://service.reasonablespread.com/">
      <SendWithAttachmentResult>string</SendWithAttachmentResult>
    </SendWithAttachmentResponse>
  </soap12:Body>
</soap12:Envelope>