POST api/Mail

Request Information

URI Parameters

None.

Body Parameters

Email
NameDescriptionTypeAdditional information
FromMailid

string

None.

ToMailid

string

None.

MailPassowrd

string

None.

Subject

string

None.

SmtpServer

string

None.

SmtpPort

integer

None.

Body

string

None.

CcMailid

string

None.

CcMailid1

string

None.

CcMailid2

string

None.

Filepathattach

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FromMailid": "sample string 1",
  "ToMailid": "sample string 2",
  "MailPassowrd": "sample string 3",
  "Subject": "sample string 4",
  "SmtpServer": "sample string 5",
  "SmtpPort": 6,
  "Body": "sample string 7",
  "CcMailid": "sample string 8",
  "CcMailid1": "sample string 9",
  "CcMailid2": "sample string 10",
  "Filepathattach": "sample string 11"
}

text/html

Sample:
{"FromMailid":"sample string 1","ToMailid":"sample string 2","MailPassowrd":"sample string 3","Subject":"sample string 4","SmtpServer":"sample string 5","SmtpPort":6,"Body":"sample string 7","CcMailid":"sample string 8","CcMailid1":"sample string 9","CcMailid2":"sample string 10","Filepathattach":"sample string 11"}

application/xml, text/xml

Sample:
<Email xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApplication1.Models">
  <Body>sample string 7</Body>
  <CcMailid>sample string 8</CcMailid>
  <CcMailid1>sample string 9</CcMailid1>
  <CcMailid2>sample string 10</CcMailid2>
  <Filepathattach>sample string 11</Filepathattach>
  <FromMailid>sample string 1</FromMailid>
  <MailPassowrd>sample string 3</MailPassowrd>
  <SmtpPort>6</SmtpPort>
  <SmtpServer>sample string 5</SmtpServer>
  <Subject>sample string 4</Subject>
  <ToMailid>sample string 2</ToMailid>
</Email>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

string

Response Formats

application/json, text/json, text/html

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>