POST api/MailNormale

Request Information

URI Parameters

None.

Body Parameters

Mail
NameDescriptionTypeAdditional information
Receiver

string

None.

Sender

string

None.

Subject

string

None.

Body

string

None.

isHtml

boolean

None.

pathAllegato

string

None.

Bcc

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Receiver": "sample string 1",
  "Sender": "sample string 2",
  "Subject": "sample string 3",
  "Body": "sample string 4",
  "isHtml": true,
  "pathAllegato": "sample string 6",
  "Bcc": "sample string 7"
}

application/xml, text/xml

Sample:
<Mail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AstebookAPI.Models.DTO">
  <Bcc>sample string 7</Bcc>
  <Body>sample string 4</Body>
  <Receiver>sample string 1</Receiver>
  <Sender>sample string 2</Sender>
  <Subject>sample string 3</Subject>
  <isHtml>true</isHtml>
  <pathAllegato>sample string 6</pathAllegato>
</Mail>

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 'Mail'.

Response Information

Resource Description

ApiResponse
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "data": {}
}

application/xml, text/xml

Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AstebookAPI.Models.DTO">
  <data />
  <message>sample string 2</message>
  <success>true</success>
</ApiResponse>