Created
March 11, 2020 11:47
-
-
Save jiangli373/f931f05075a7593bc276b6c9778c6936 to your computer and use it in GitHub Desktop.
nodemailer发送邮件到QQ邮箱,附件名称被截取
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nodemailer/lib/mime-node/index.js | |
// value = mimeFuncs.buildHeaderValue(structured); | |
const fileName = encodeURI(this.filename); | |
value = `attachment; filename*0*=utf-8''${fileName}`; | |
 |
Author
jiangli373
commented
Mar 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment