POST api/Mail/SendMail

Request Information

URI Parameters

None.

Body Parameters

SendMailDto
NameDescriptionTypeAdditional information
Debug

boolean

None.

DebugMailTo

string

None.

ErrorMailTo

string

None.

MailTitle

string

None.

MailTo

string

None.

MailCC

string

None.

MailBCC

string

None.

MailBody

string

None.

FromBillParms

string

None.

MailFromType

string

None.

SendDate

date

None.

Attachments

Collection of SendMailAttachmentDto

None.

AttachmentStreams

Collection of SendMailAttachmentStreamsDto

None.

Request Formats

application/json, text/json

Sample:
{
  "Debug": true,
  "DebugMailTo": "sample string 2",
  "ErrorMailTo": "sample string 3",
  "MailTitle": "sample string 4",
  "MailTo": "sample string 5",
  "MailCC": "sample string 6",
  "MailBCC": "sample string 7",
  "MailBody": "sample string 8",
  "FromBillParms": "sample string 9",
  "MailFromType": "sample string 10",
  "SendDate": "2020-10-30T21:06:32.1024887+08:00",
  "Attachments": [
    {
      "Host": "sample string 1",
      "FileName": "sample string 2",
      "FilePath": "sample string 3"
    },
    {
      "Host": "sample string 1",
      "FileName": "sample string 2",
      "FilePath": "sample string 3"
    }
  ],
  "AttachmentStreams": [
    {
      "FileName": "sample string 1",
      "FileStream": "QEA="
    },
    {
      "FileName": "sample string 1",
      "FileStream": "QEA="
    }
  ]
}

application/xml, text/xml

Sample:
<SendMailDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StrongWebAPI.Models">
  <AttachmentStreams>
    <SendMailAttachmentStreamsDto>
      <FileName>sample string 1</FileName>
      <FileStream>QEA=</FileStream>
    </SendMailAttachmentStreamsDto>
    <SendMailAttachmentStreamsDto>
      <FileName>sample string 1</FileName>
      <FileStream>QEA=</FileStream>
    </SendMailAttachmentStreamsDto>
  </AttachmentStreams>
  <Attachments>
    <SendMailAttachmentDto>
      <FileName>sample string 2</FileName>
      <FilePath>sample string 3</FilePath>
      <Host>sample string 1</Host>
    </SendMailAttachmentDto>
    <SendMailAttachmentDto>
      <FileName>sample string 2</FileName>
      <FilePath>sample string 3</FilePath>
      <Host>sample string 1</Host>
    </SendMailAttachmentDto>
  </Attachments>
  <Debug>true</Debug>
  <DebugMailTo>sample string 2</DebugMailTo>
  <ErrorMailTo>sample string 3</ErrorMailTo>
  <FromBillParms>sample string 9</FromBillParms>
  <MailBCC>sample string 7</MailBCC>
  <MailBody>sample string 8</MailBody>
  <MailCC>sample string 6</MailCC>
  <MailFromType>sample string 10</MailFromType>
  <MailTitle>sample string 4</MailTitle>
  <MailTo>sample string 5</MailTo>
  <SendDate>2020-10-30T21:06:32.1024887+08:00</SendDate>
</SendMailDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

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