POST api/Reports/SendAsciiEmail

Request Information

URI Parameters

None.

Body Parameters

EmailToSend
NameDescriptionTypeAdditional information
IsHtmlContent

boolean

None.

RecEmailSubject

string

None.

RecEmailContent

string

None.

asciiFilesPath

string

None.

RecEmailAddress

Collection of string

None.

RecEmailAttached

Collection of string

None.

AttachedExtensions

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "IsHtmlContent": true,
  "RecEmailSubject": "sample string 2",
  "RecEmailContent": "sample string 3",
  "asciiFilesPath": "sample string 4",
  "RecEmailAddress": [
    "sample string 1",
    "sample string 2"
  ],
  "RecEmailAttached": [
    "sample string 1",
    "sample string 2"
  ],
  "AttachedExtensions": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<EmailToSend xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical.MedInterfaces">
  <AttachedExtensions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </AttachedExtensions>
  <IsHtmlContent>true</IsHtmlContent>
  <RecEmailAddress xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </RecEmailAddress>
  <RecEmailAttached xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </RecEmailAttached>
  <RecEmailContent>sample string 3</RecEmailContent>
  <RecEmailSubject>sample string 2</RecEmailSubject>
  <asciiFilesPath>sample string 4</asciiFilesPath>
</EmailToSend>

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

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

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.