nodemailer - Nodemailer 错误:无法使用“in”运算符搜索“contentTransferEncoding”
问题描述
我正在尝试从Unity 向我在 Node.js 中的 Web 服务端点发送POST请求;我可以在不添加任何附件的情况下发送电子邮件。但是,当我尝试发送一系列附件时,我总是会收到此错误。
错误:无法使用 'in' 运算符在 [{filename: 'test.txt', contentType: 'text/plain', content: 'Hello World!', contentTransferEncoding: 'quoted-printable'}] 中搜索 'contentTransferEncoding'
我也尝试从Postman发送一个POST请求,但我得到了同样的错误。
解决方案
推荐阅读
- java - ConditionalRejectingErrorHandlerExecution 的可能原因
- python - 统计列表中对象的出现次数
- c# - 如何在 C# 的 SSMS 2018 扩展中从 SQL 编辑器文档获取当前连接
- r - R 包更新
- python-3.x - 我在使用跨域创建 cookie 时遇到问题(python 烧瓶,ReactJS)
- javascript - Uglify JS - 仅删除 console.log
- c# - 如何使用 sql server 和 asp.net 检索当前缺席和离开记录?
- linux - Linux - sed - 从配置文件编辑 java opts
- android - 在 android studio 包名称中更改域扩展
- php - 如何在 PHP 中用逗号分割字符串