SrvHttpClient


Click here for a complete list of operations.

sendmail

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 /SrvHttpClient.asmx HTTP/1.1
Host: webservices.fitnessforce.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/sendmail"

<?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>
    <sendmail xmlns="http://tempuri.org/">
      <_ApiKey>string</_ApiKey>
      <Body>string</Body>
      <Subject>string</Subject>
      <From_EmailID>string</From_EmailID>
      <From_Name>string</From_Name>
      <To_EmailID>string</To_EmailID>
      <CC_EmailID>string</CC_EmailID>
      <To_Name>string</To_Name>
      <attachment>
        <attachment>
          <content>string</content>
          <name>string</name>
          <type>string</type>
        </attachment>
        <attachment>
          <content>string</content>
          <name>string</name>
          <type>string</type>
        </attachment>
      </attachment>
      <image>
        <image>
          <content>string</content>
          <name>string</name>
          <type>string</type>
        </image>
        <image>
          <content>string</content>
          <name>string</name>
          <type>string</type>
        </image>
      </image>
      <emailtype>string</emailtype>
      <SubAccount>string</SubAccount>
      <async>string</async>
      <ip_pool>string</ip_pool>
      <send_at>string</send_at>
    </sendmail>
  </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>
    <sendmailResponse xmlns="http://tempuri.org/">
      <sendmailResult>
        <RecipientReturn>
          <email>string</email>
          <status>string</status>
          <_id>string</_id>
        </RecipientReturn>
        <RecipientReturn>
          <email>string</email>
          <status>string</status>
          <_id>string</_id>
        </RecipientReturn>
      </sendmailResult>
    </sendmailResponse>
  </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 /SrvHttpClient.asmx HTTP/1.1
Host: webservices.fitnessforce.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>
    <sendmail xmlns="http://tempuri.org/">
      <_ApiKey>string</_ApiKey>
      <Body>string</Body>
      <Subject>string</Subject>
      <From_EmailID>string</From_EmailID>
      <From_Name>string</From_Name>
      <To_EmailID>string</To_EmailID>
      <CC_EmailID>string</CC_EmailID>
      <To_Name>string</To_Name>
      <attachment>
        <attachment>
          <content>string</content>
          <name>string</name>
          <type>string</type>
        </attachment>
        <attachment>
          <content>string</content>
          <name>string</name>
          <type>string</type>
        </attachment>
      </attachment>
      <image>
        <image>
          <content>string</content>
          <name>string</name>
          <type>string</type>
        </image>
        <image>
          <content>string</content>
          <name>string</name>
          <type>string</type>
        </image>
      </image>
      <emailtype>string</emailtype>
      <SubAccount>string</SubAccount>
      <async>string</async>
      <ip_pool>string</ip_pool>
      <send_at>string</send_at>
    </sendmail>
  </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>
    <sendmailResponse xmlns="http://tempuri.org/">
      <sendmailResult>
        <RecipientReturn>
          <email>string</email>
          <status>string</status>
          <_id>string</_id>
        </RecipientReturn>
        <RecipientReturn>
          <email>string</email>
          <status>string</status>
          <_id>string</_id>
        </RecipientReturn>
      </sendmailResult>
    </sendmailResponse>
  </soap12:Body>
</soap12:Envelope>