如何解决我无法在 Nodemailer 中附加 webp 图像
我似乎无法在 Nodemailer 的附件中附加 webp 图像。 Jpeg 和 png 效果很好,但我很难处理 webp 图像。
此处是我根据 docs 遵循的要附加的示例代码。
attachments: [
{
filename: "logo.png",path:"../images/logo.png",cid: "logo@myweb.ph",//same cid value as in the html img src
},{
filename: "list.jpg",path:"../images/list.jpg",cid: "list@myweb.ph",{
filename: "list2.webp",path: "../images/list2.webp",cid: "list2@myweb.ph",//same cid value as in the html img src,contentType: 'image/webp'
}
]
我做错了吗?还是gmail或nodemailer不能装webp?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。