Skip to content

Send_Email1.1

Latest
Compare
Choose a tag to compare
@nu0l nu0l released this 24 Dec 08:19
f3fe670

修复了Web API附件为空且名称不正确的问题
如果发送邮件不插入附件,则滞空

{
  "to": [
    "[email protected]"
  ],
  "subject": "邮件主题内容",
  "content": "邮件的正文内容",
  "attachments": [
    {
      "fileName": null,
      "filePath": null
    }
  ]
}

,如果需要插入附件则

{
  "to": [
    "[email protected]"
  ],
  "subject": "邮件主题内容",
  "content": "邮件的正文内容",
  "attachments": [
    {
      "fileName": "1.txt",
      "filePath": "/etc/hosts"
    }
  ]
}