POST api/Invoice/PostEmail

发送电票邮件

Request Information

URI Parameters

None.

Body Parameters

请求数据

EmailPost
NameDescriptionTypeAdditional information
mailTo

要发送的邮箱

string

None.

mailSubject

邮箱主题

string

None.

mailContent

邮箱内容

string

None.

user_id

当前登录者Id

string

None.

token

token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "mailTo": "sample string 1",
  "mailSubject": "sample string 2",
  "mailContent": "sample string 3",
  "user_id": "sample string 4",
  "token": "sample string 5"
}

application/xml, text/xml

Sample:
<EmailPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BBS.Model">
  <token>sample string 5</token>
  <user_id>sample string 4</user_id>
  <mailContent>sample string 3</mailContent>
  <mailSubject>sample string 2</mailSubject>
  <mailTo>sample string 1</mailTo>
</EmailPost>

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

Response Information

Resource Description

发送电票邮件

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>