修复了Web API附件为空且名称不正确的问题
如果发送邮件不插入附件,则滞空
{
"to": [
"[email protected]"
],
"subject": "邮件主题内容",
"content": "邮件的正文内容",
"attachments": [
{
"fileName": null,
"filePath": null
}
]
}
,如果需要插入附件则
{
"to": [
"[email protected]"
],
"subject": "邮件主题内容",
"content": "邮件的正文内容",
"attachments": [
{
"fileName": "1.txt",
"filePath": "/etc/hosts"
}
]
}