【发布时间】:2021-04-19 14:22:36
【问题描述】:
我按照本教程使用 axios 和 vue 上传图片:https://serversideup.net/uploading-files-vuejs-axios/
现在我得到了一个“密钥文件”,我可以使用开发工具screenshot dev tool在里面看到我的图像@
我想按照我在此处找到的解决方案使用 nodemailer 作为附件通过电子邮件发送此图像
attachments: [
{filename: "photo.jpg",
contentType: 'image/jpeg',
streamSource: fs.createReadStream(`${file}`.path)
},
],
但我不能让它工作。希望有人给点建议?
【问题讨论】:
标签: json vue.js email nodemailer