POST api/TestOnly/SendEmail

Request Information

URI Parameters

None.

Body Parameters

FullEmaildata
NameDescriptionTypeAdditional information
def

EmailDefinitions

None.

dat

EmailToSend

None.

Request Formats

application/json, text/json

Sample:
{
  "def": {
    "SSL": true,
    "PortNumber": 2,
    "SmtpServer": "sample string 3",
    "SenderEmail": "sample string 4",
    "SenderName": "sample string 5",
    "SenderPassword": "sample string 6",
    "SenderTimeout": 7
  },
  "dat": {
    "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"
    ]
  }
}

application/xml, text/xml

Sample:
<TestOnlyController.FullEmaildata xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IMedical.Controllers">
  <dat xmlns:d2p1="http://schemas.datacontract.org/2004/07/BLMedical.MedInterfaces">
    <d2p1:IsHtmlContent>true</d2p1:IsHtmlContent>
    <d2p1:RecEmailAddress xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </d2p1:RecEmailAddress>
    <d2p1:RecEmailAttached xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </d2p1:RecEmailAttached>
    <d2p1:RecEmailContent>sample string 3</d2p1:RecEmailContent>
    <d2p1:RecEmailSubject>sample string 2</d2p1:RecEmailSubject>
    <d2p1:asciiFilesPath>sample string 4</d2p1:asciiFilesPath>
  </dat>
  <def xmlns:d2p1="http://schemas.datacontract.org/2004/07/BLMedical.MedInterfaces">
    <d2p1:PortNumber>2</d2p1:PortNumber>
    <d2p1:SSL>true</d2p1:SSL>
    <d2p1:SenderEmail>sample string 4</d2p1:SenderEmail>
    <d2p1:SenderName>sample string 5</d2p1:SenderName>
    <d2p1:SenderPassword>sample string 6</d2p1:SenderPassword>
    <d2p1:SenderTimeout>7</d2p1:SenderTimeout>
    <d2p1:SmtpServer>sample string 3</d2p1:SmtpServer>
  </def>
</TestOnlyController.FullEmaildata>

application/x-www-form-urlencoded

Sample:

Sample not available.

application/bson

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

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

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

application/bson

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