POST api/email/send

Request Information

URI Parameters

None.

Body Parameters

Email
NameDescriptionTypeAdditional information
Id

string

None.

To

string

None.

From

string

None.

Subject

string

None.

Body

string

None.

TemplateType

integer

None.

TargetName

string

None.

TargetTextBlue

string

None.

TargetSecondaryText

string

None.

DiscountPrice

string

None.

TargetTextComment

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "To": "sample string 2",
  "From": "sample string 3",
  "Subject": "sample string 4",
  "Body": "sample string 5",
  "TemplateType": 6,
  "TargetName": "sample string 7",
  "TargetTextBlue": "sample string 8",
  "TargetSecondaryText": "sample string 9",
  "DiscountPrice": "sample string 10",
  "TargetTextComment": "sample string 11"
}

text/html

Sample:
{"Id":"sample string 1","To":"sample string 2","From":"sample string 3","Subject":"sample string 4","Body":"sample string 5","TemplateType":6,"TargetName":"sample string 7","TargetTextBlue":"sample string 8","TargetSecondaryText":"sample string 9","DiscountPrice":"sample string 10","TargetTextComment":"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/FoneClube.Business.Commons.Entities.FoneClube">
  <Body>sample string 5</Body>
  <DiscountPrice>sample string 10</DiscountPrice>
  <From>sample string 3</From>
  <Id>sample string 1</Id>
  <Subject>sample string 4</Subject>
  <TargetName>sample string 7</TargetName>
  <TargetSecondaryText>sample string 9</TargetSecondaryText>
  <TargetTextBlue>sample string 8</TargetTextBlue>
  <TargetTextComment>sample string 11</TargetTextComment>
  <TemplateType>6</TemplateType>
  <To>sample string 2</To>
</Email>

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

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>