Skip to content

Instantly share code, notes, and snippets.

@jiangli373
Created March 11, 2020 11:47
Show Gist options
  • Save jiangli373/f931f05075a7593bc276b6c9778c6936 to your computer and use it in GitHub Desktop.
Save jiangli373/f931f05075a7593bc276b6c9778c6936 to your computer and use it in GitHub Desktop.
nodemailer发送邮件到QQ邮箱,附件名称被截取
nodemailer/lib/mime-node/index.js
// value = mimeFuncs.buildHeaderValue(structured);
const fileName = encodeURI(this.filename);
value = `attachment; filename*0*=utf-8''${fileName}`;
@jiangli373
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment