首页 > 解决方案 > Nodemailer 错误:无法使用“in”运算符搜索“contentTransferEncoding”

问题描述

我正在尝试从Unity 向我在 Node.js 中的 Web 服务端点发送POST请求;我可以在不添加任何附件的情况下发送电子邮件。但是,当我尝试发送一系列附件时,我总是会收到此错误。

错误:无法使用 'in' 运算符在 [{filename: 'test.txt', contentType: 'text/plain', content: 'Hello World!', contentTransferEncoding: 'quoted-printable'}] 中搜索 'contentTransferEncoding'

我也尝试从Postman发送一个POST请求,但我得到了同样的错误。

标签: nodemailer

解决方案


推荐阅读