POST api/{programid}/v2/email/sendEmail

Sends and email through SMTP

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

string

Required

Body Parameters

Email
NameDescriptionTypeAdditional information
Body

string

None.

Subject

string

None.

FromAddress

string

None.

ToAddress

string

None.

fromUser

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Body": "sample string 1",
  "Subject": "sample string 2",
  "FromAddress": "sample string 3",
  "ToAddress": "sample string 4",
  "fromUser": "sample string 5"
}

application/xml, text/xml

Sample:
<Email xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.Models.v2">
  <Body>sample string 1</Body>
  <FromAddress>sample string 3</FromAddress>
  <Subject>sample string 2</Subject>
  <ToAddress>sample string 4</ToAddress>
  <fromUser>sample string 5</fromUser>
</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

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.