POST api/MailMessage/Send

Request Information

URI Parameters

None.

Body Parameters

Message
NameDescriptionTypeAdditional information
From

Address

None.

To

Collection of Address

None.

Cc

Collection of Address

None.

Bcc

Collection of Address

None.

Subject

string

None.

Body

string

None.

Request Formats

application/json, text/json

Sample:
{
  "From": {
    "DisplayName": "sample string 1",
    "EmailAddress": "sample string 2"
  },
  "To": [
    {
      "DisplayName": "sample string 1",
      "EmailAddress": "sample string 2"
    },
    {
      "DisplayName": "sample string 1",
      "EmailAddress": "sample string 2"
    }
  ],
  "Cc": [
    {
      "DisplayName": "sample string 1",
      "EmailAddress": "sample string 2"
    },
    {
      "DisplayName": "sample string 1",
      "EmailAddress": "sample string 2"
    }
  ],
  "Bcc": [
    {
      "DisplayName": "sample string 1",
      "EmailAddress": "sample string 2"
    },
    {
      "DisplayName": "sample string 1",
      "EmailAddress": "sample string 2"
    }
  ],
  "Subject": "sample string 1",
  "Body": "sample string 2"
}

application/xml, text/xml

Sample:
<Message xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inlinea.Astegiudiziarie.BL.MailMessage">
  <Bcc>
    <Address>
      <DisplayName>sample string 1</DisplayName>
      <EmailAddress>sample string 2</EmailAddress>
    </Address>
    <Address>
      <DisplayName>sample string 1</DisplayName>
      <EmailAddress>sample string 2</EmailAddress>
    </Address>
  </Bcc>
  <Body>sample string 2</Body>
  <Cc>
    <Address>
      <DisplayName>sample string 1</DisplayName>
      <EmailAddress>sample string 2</EmailAddress>
    </Address>
    <Address>
      <DisplayName>sample string 1</DisplayName>
      <EmailAddress>sample string 2</EmailAddress>
    </Address>
  </Cc>
  <From>
    <DisplayName>sample string 1</DisplayName>
    <EmailAddress>sample string 2</EmailAddress>
  </From>
  <Subject>sample string 1</Subject>
  <To>
    <Address>
      <DisplayName>sample string 1</DisplayName>
      <EmailAddress>sample string 2</EmailAddress>
    </Address>
    <Address>
      <DisplayName>sample string 1</DisplayName>
      <EmailAddress>sample string 2</EmailAddress>
    </Address>
  </To>
</Message>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessagesResponses
NameDescriptionTypeAdditional information
error

Exception

None.

responses

Collection of SingleMessageResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "error": {
    "ClassName": "System.Exception",
    "Message": null,
    "Data": null,
    "InnerException": null,
    "HelpURL": "sample string 1",
    "StackTraceString": null,
    "RemoteStackTraceString": null,
    "RemoteStackIndex": 0,
    "ExceptionMethod": null,
    "HResult": 3,
    "Source": "sample string 2",
    "WatsonBuckets": null
  },
  "responses": null
}

application/xml, text/xml

Sample:
<MessagesResponses xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Inlinea.Astegiudiziarie.BL.MailMessage">
  <error xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
    <ClassName xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">System.Exception</ClassName>
    <Message i:nil="true" xmlns="" />
    <Data i:nil="true" xmlns="" />
    <InnerException i:nil="true" xmlns="" />
    <HelpURL xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 1</HelpURL>
    <StackTraceString i:nil="true" xmlns="" />
    <RemoteStackTraceString i:nil="true" xmlns="" />
    <RemoteStackIndex xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">0</RemoteStackIndex>
    <ExceptionMethod i:nil="true" xmlns="" />
    <HResult xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:int" xmlns="">3</HResult>
    <Source xmlns:d3p1="http://www.w3.org/2001/XMLSchema" i:type="d3p1:string" xmlns="">sample string 2</Source>
    <WatsonBuckets i:nil="true" xmlns="" />
  </error>
  <responses i:nil="true" />
</MessagesResponses>