POST api/sys/v2/email/sendGrid?accoutType={accoutType}
郵件發送(第三方接口)
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
accoutType | string |
Default value is default |
Body Parameters
SendGridRQContractName | Description | Type | Additional information |
---|---|---|---|
to | Collection of string |
None. |
|
bcc | Collection of string |
None. |
|
cc | Collection of string |
None. |
|
subject | string |
None. |
|
content | string |
None. |
|
attachments | Collection of GridAttachment |
None. |
Request Formats
application/json, text/json
Sample:
{ "to": [ "sample string 1", "sample string 2" ], "bcc": [ "sample string 1", "sample string 2" ], "cc": [ "sample string 1", "sample string 2" ], "subject": "sample string 1", "content": "sample string 2", "attachments": [ { "Type": "sample string 1", "Content": "sample string 2", "FileName": "sample string 3" }, { "Type": "sample string 1", "Content": "sample string 2", "FileName": "sample string 3" } ] }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
郵件發送(第三方接口)
ReturnResultOfBooleanName | Description | Type | Additional 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" }