POST api/sys/email/send?docNo={docNo}

發送郵件(OWN API)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
docNo

string

Default value is

Body Parameters

EmailContract
NameDescriptionTypeAdditional information
addresses

收件人(To)

Collection of string

None.

bccaddresses

密送地址(BCC)(多個“,”分隔)

string

None.

ccaddresses

抄送地址(CC) (多個“,”分隔)

string

None.

subject

郵件主題

string

None.

body

發件內容

string

None.

isbodyhtml

BODY是否為HTML

boolean

None.

atype

郵件帳戶類型(默認為default)

string

None.

attachfilepath

附件地址

Collection of string

None.

FromEmail

发送显示email

string

None.

FromName

发送显示名称

string

None.

Request Formats

application/json, text/json

Sample:
{
  "addresses": [
    "sample string 1",
    "sample string 2"
  ],
  "bccaddresses": "sample string 1",
  "ccaddresses": "sample string 2",
  "subject": "sample string 3",
  "body": "sample string 4",
  "isbodyhtml": true,
  "atype": "sample string 6",
  "attachfilepath": [
    "sample string 1",
    "sample string 2"
  ],
  "FromEmail": "sample string 7",
  "FromName": "sample string 8"
}

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

Response Information

Resource Description

發送郵件(OWN API)

ReturnResultOfBoolean
NameDescriptionTypeAdditional information
data

boolean

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": true,
  "code": 2,
  "message": "sample string 3"
}