POST api/sys/email/msend

發送模板郵件

Request Information

URI Parameters

None.

Body Parameters

MailDataContract
NameDescriptionTypeAdditional information
addresses

收件人

Collection of string

None.

bccaddresses

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

string

None.

subject

郵件主題

string

None.

isbodyhtml

BODY是否為HTML

boolean

None.

templateitemtype

模板类型

string

None.

lang

语言

string

None.

createip

IP地址

string

None.

labellist

标签

Dictionary of string [key] and string [value]

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",
  "subject": "sample string 2",
  "isbodyhtml": true,
  "templateitemtype": "sample string 4",
  "lang": "sample string 5",
  "createip": "sample string 6",
  "labellist": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "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 'MailDataContract'.

Response Information

Resource Description

發送模板郵件

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"
}