Include the following information with your issue:
- Nodemailer version you are having problems with (eg. v1.3.7)
- Node.js version you are using (run
node -v
to see it, eg v5.5.0) - Your operating system (eg. Windows 10, Ubuntu 14.04 etc.)
- Nodemailer configuration settings
- If possible, include a minimal test case that can be used to verify your issue (link to a gist would be great!)
If you are having problems with Gmail, then make sure you have read this post before filing your issue: https://nodemailer.com/usage/using-gmail/
"SyntaxError: Unexpected token ..." – check your Node.js version, it must be at least v6.0.0. If you do have Node.js v6 or later installed then check if you have multiple Node versions installed.