POST api/Email

Request Information

URI Parameters

None.

Body Parameters

EmailData
NameDescriptionTypeAdditional information
from

string

None.

to

string

None.

cc

string

None.

subject

string

None.

msg

string

None.

mMsg

MailMessage

None.

Request Formats

application/json, text/json

Sample:
{
  "from": "sample string 1",
  "to": "sample string 2",
  "cc": "sample string 3",
  "subject": "sample string 4",
  "msg": "sample string 5",
  "mMsg": null
}

application/xml, text/xml

Sample:
<EmailController.EmailData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CpathWebApi.Controllers">
  <cc>sample string 3</cc>
  <from>sample string 1</from>
  <mMsg xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Net.Mail" i:nil="true" />
  <msg>sample string 5</msg>
  <subject>sample string 4</subject>
  <to>sample string 2</to>
</EmailController.EmailData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Result
NameDescriptionTypeAdditional information
code

string

None.

result

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "result": "sample string 2"
}

application/xml, text/xml

Sample:
<EmailController.Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CpathWebApi.Controllers">
  <code>sample string 1</code>
  <result>sample string 2</result>
</EmailController.Result>