Service


Click here for a complete list of operations.

SendBatchEmails

SendBatchEmails
Arguments:

loginEmail: Login Email of Spread.
apiKey: API Key which you can retrieve from your Spread account (My account=> Settings).
campaignName: CampaignName
from: Email address of From
fromName: FromName
batchNo: BatchNo for the campaignt
systemId: SystemId for the campaign
subscriberCampaignContent: ToEmails(),CategoryNames(), Subject,Content
attachmentUrl: The attachment download url, support pdf,word,excel,ppt,txt and images etc.
return SendBatchEmailsResponse.

Result,CampaignId,SystemId,BatchNo,ResultMsg

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: service5.rspread.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://service.reasonablespread.com/SendBatchEmails"

<?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>
    <SendBatchEmails xmlns="http://service.reasonablespread.com/">
      <loginEmail>string</loginEmail>
      <apiKey>string</apiKey>
      <campaignName>string</campaignName>
      <from>string</from>
      <fromName>string</fromName>
      <batchNO>string</batchNO>
      <systemID>string</systemID>
      <subscriberCampaignContent>
        <SubscriberCampaignContent>
          <ToEmails>
            <EmailEntity xsi:nil="true" />
            <EmailEntity xsi:nil="true" />
          </ToEmails>
          <CategoryNames>
            <string>string</string>
            <string>string</string>
          </CategoryNames>
          <Subject>string</Subject>
          <Content>string</Content>
        </SubscriberCampaignContent>
        <SubscriberCampaignContent>
          <ToEmails>
            <EmailEntity xsi:nil="true" />
            <EmailEntity xsi:nil="true" />
          </ToEmails>
          <CategoryNames>
            <string>string</string>
            <string>string</string>
          </CategoryNames>
          <Subject>string</Subject>
          <Content>string</Content>
        </SubscriberCampaignContent>
      </subscriberCampaignContent>
      <attachmentUrl>
        <string>string</string>
        <string>string</string>
      </attachmentUrl>
    </SendBatchEmails>
  </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>
    <SendBatchEmailsResponse xmlns="http://service.reasonablespread.com/">
      <SendBatchEmailsResult>
        <Result>string</Result>
        <CampaignId>string</CampaignId>
        <SystemId>string</SystemId>
        <BatchNo>string</BatchNo>
        <ResultMsg>string</ResultMsg>
      </SendBatchEmailsResult>
    </SendBatchEmailsResponse>
  </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: service5.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>
    <SendBatchEmails xmlns="http://service.reasonablespread.com/">
      <loginEmail>string</loginEmail>
      <apiKey>string</apiKey>
      <campaignName>string</campaignName>
      <from>string</from>
      <fromName>string</fromName>
      <batchNO>string</batchNO>
      <systemID>string</systemID>
      <subscriberCampaignContent>
        <SubscriberCampaignContent>
          <ToEmails>
            <EmailEntity xsi:nil="true" />
            <EmailEntity xsi:nil="true" />
          </ToEmails>
          <CategoryNames>
            <string>string</string>
            <string>string</string>
          </CategoryNames>
          <Subject>string</Subject>
          <Content>string</Content>
        </SubscriberCampaignContent>
        <SubscriberCampaignContent>
          <ToEmails>
            <EmailEntity xsi:nil="true" />
            <EmailEntity xsi:nil="true" />
          </ToEmails>
          <CategoryNames>
            <string>string</string>
            <string>string</string>
          </CategoryNames>
          <Subject>string</Subject>
          <Content>string</Content>
        </SubscriberCampaignContent>
      </subscriberCampaignContent>
      <attachmentUrl>
        <string>string</string>
        <string>string</string>
      </attachmentUrl>
    </SendBatchEmails>
  </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>
    <SendBatchEmailsResponse xmlns="http://service.reasonablespread.com/">
      <SendBatchEmailsResult>
        <Result>string</Result>
        <CampaignId>string</CampaignId>
        <SystemId>string</SystemId>
        <BatchNo>string</BatchNo>
        <ResultMsg>string</ResultMsg>
      </SendBatchEmailsResult>
    </SendBatchEmailsResponse>
  </soap12:Body>
</soap12:Envelope>