POST api/Mail/SendMailByHR

Request Information

URI Parameters

None.

Body Parameters

SendMailByHRDto
NameDescriptionTypeAdditional information
MailFromType

string

None.

Debug

boolean

None.

DebugMailTo

Collection of string

None.

ErrorMailTo

Collection of string

None.

MailTitle

string

None.

MailTo

Collection of string

None.

MailCC

Collection of string

None.

MailBCC

Collection of string

None.

MailBody

string

None.

FromBillParms

string

None.

SendDate

date

None.

Attachments

Collection of SendMailAttachmentDto

None.

AttachmentStreams

Collection of SendMailAttachmentStreamsDto

None.

Request Formats

application/json, text/json

Sample:
{
  "MailFromType": "喜之郎人力资源部",
  "Debug": true,
  "DebugMailTo": [
    "sample string 1",
    "sample string 2"
  ],
  "ErrorMailTo": [
    "sample string 1",
    "sample string 2"
  ],
  "MailTitle": "sample string 2",
  "MailTo": [
    "sample string 1",
    "sample string 2"
  ],
  "MailCC": [
    "sample string 1",
    "sample string 2"
  ],
  "MailBCC": [
    "sample string 1",
    "sample string 2"
  ],
  "MailBody": "sample string 3",
  "FromBillParms": "sample string 4",
  "SendDate": "2020-10-30T20:32:14.9616887+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:
<SendMailByHRDto 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 xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </DebugMailTo>
  <ErrorMailTo xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </ErrorMailTo>
  <FromBillParms>sample string 4</FromBillParms>
  <MailBCC xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </MailBCC>
  <MailBody>sample string 3</MailBody>
  <MailCC xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </MailCC>
  <MailFromType>喜之郎人力资源部</MailFromType>
  <MailTitle>sample string 2</MailTitle>
  <MailTo xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </MailTo>
  <SendDate>2020-10-30T20:32:14.9616887+08:00</SendDate>
</SendMailByHRDto>

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>