POST api/email/sendemail?isTextFormat={isTextFormat}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isTextFormat

boolean

Required

Body Parameters

EmailContent
NameDescriptionTypeAdditional information
To

string

None.

CC

string

None.

Subject

string

None.

Body

string

None.

Attachments

Dictionary of string [key] and Collection of byte [value]

None.

Request Formats

application/json, text/json

Sample:
{
  "to": "sample string 1",
  "cc": "sample string 2",
  "subject": "sample string 3",
  "body": "sample string 4",
  "attachments": {
    "sample string 1": "QEA=",
    "sample string 2": "QEA="
  }
}

application/xml, text/xml

Sample:
<EmailContent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DOL.WHD.Section14c.EmailApi.Helper">
  <Attachments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringbase64Binary>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>QEA=</d2p1:Value>
    </d2p1:KeyValueOfstringbase64Binary>
    <d2p1:KeyValueOfstringbase64Binary>
      <d2p1:Key>sample string 2</d2p1:Key>
      <d2p1:Value>QEA=</d2p1:Value>
    </d2p1:KeyValueOfstringbase64Binary>
  </Attachments>
  <Body>sample string 4</Body>
  <CC>sample string 2</CC>
  <Subject>sample string 3</Subject>
  <To>sample string 1</To>
</EmailContent>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmailContent'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.