Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Aug 09 02:15
    github-actions[bot] unlabeled #1430
  • Aug 08 05:29
    ezalorsara commented #1430
  • Aug 06 02:15
    github-actions[bot] labeled #1430
  • Aug 06 02:15
    github-actions[bot] commented #1430
  • Aug 04 05:03
    James-Zhangpp opened #1450
  • Aug 03 12:28
    is-jaduda commented #1369
  • Aug 02 20:25
    kmiths19 commented #1277
  • Aug 02 09:07
    andris9 closed #1449
  • Aug 02 09:07
    andris9 commented #1449
  • Aug 02 09:03
    jimmywarting opened #1449
  • Aug 01 08:07
    mobsense commented #1448
  • Aug 01 08:03
    andris9 commented #1448
  • Aug 01 08:03
    andris9 closed #1448
  • Aug 01 07:53
    mobsense opened #1448
  • Jul 31 12:07

    andris9 on master

    Updated readme (compare)

  • Jul 28 16:16
    darion6 commented #1439
  • Jul 28 16:12
    vincentmarkcelino edited #1447
  • Jul 28 16:11
    vincentmarkcelino edited #1447
  • Jul 28 16:11
    vincentmarkcelino edited #1447
  • Jul 28 16:10
    vincentmarkcelino opened #1447
Looking to use nodemailer behind a >>SEND>> button in browser to send plain text color codes from a color-picker made with React here: http://codepen.io/freesaga/pen/xgxaqp
So just run transporter.sendMail on >Send> button-click then I think, yea?
Is there a way to render a value nested in an object? For example {{ship_to.data.name}}
Brian Flannery
Running nodemailer in a backbone model .js file and get this error when submitting "Error: Unsupported configuration, downgrade Nodemailer to v0.7.1 to use it". Anyone have an idea? Can send my code if needed
Julien Fontanet
Hello everyone, where should Nodemailer issues be reported?
Julien Fontanet
@andris9 friendly poke :)
Kai Hendry
Is there a text (80 col) templating engine available in JS? So you can right align or center a {{ event.title }} for e.g. ?
while sending messages from nodemailer that message is not showing in the sent mailbox of that particular user
Vijay Kumar Chitirala
Hello everyone
How can i use nodemailer to send emails from a gmail group account?
I used nodemailer directly with my email & password. I also tried with oauth2 credentials with xoauth2 transport. Both of these works great but only for a user account. these methods are not to send mails from a group account

Hi all,
How can I send emails to the SMTP server no authentication?

( I don't know why my client use a server no authentication. And I need to check how can I use nodemailer for this case)

Hey, is there anyone with godaddy mails expreience
"message": {
"code": "EAUTH",
"response": "535 Authentication Failed",
"responseCode": 535,
"command": "AUTH LOGIN"
I am getting this error, while using same credentials I can access on browser
I am using nodemailer-smtp-transport
Ramon Fritsch
Hey Guys, is this safe to upgrade from 2.x to 3.x?
Abdul Jalil Laguindab
Hello, I there a way to add user agent on nodemailer. Like adding headers to set on what os you are on, or browser.
Evan Sendra

Can't seem to get OAuth2 working with a service account via gmail. Config looks like this:

let transport = mailer.createTransport({
service: 'Gmail',
auth: {
type: 'OAuth2',
user: 'user@cutomgmailsite.com',
serviceClient: '106...',
privateKey: '-----BEGIN PRIVATE KEY-----...',
//accessToken: '', where would I get this?
//expires: 1, where would I get this?

from gmail I get a json object with private_key_id, private_key, client_email, client_id, auth_uri, token_uri, auth_provider_x509_cert_url, and client_x509_cert_url, but no accessToken or expires as is required by nodemailer. I thought the access token and expiration was sent as a response from gmail's side?
I would just use username and password as an auth mechanism but I don't have access to set this app as a "less secure app", and that doesn't seem like a particularly good solution anyway
Adam Sinclair

Hi everyone, I'm running Nodemailer 2.3.2 and I can't seem to get the filename for my attachment working. No matter what I give it, it always defaults to attachment-1.xls

Here is my attachments section ...

attachments: [
        // _filename is 'TN_TestName_2017-04-05.xls'
        filename: _filename,
        content: fileBuffer,
        contentType: 'application/vnd.ms-excel'

EDIT: I removed the content type and that fixed the problem

Owen Mills
How can I use templates with nodemailer?
Erik Demaine
"All templating is gone": https://nodemailer.com/about/migrate/
But of course you can template with another system, then send with nodemailer
Got a question: Do I need access Token to get it to work properly?
Evan Sendra
Ah, I got it all working. My problem actually was that I was using node 4.4.3. After using Chocolatey to upgrade to some 7+, it's all working.
hi, i am looking for an example how to use DSN with nodemailer version 0.7.1
Andris Reinman
Nodemailer 0.7.1 is 3 years old by now, I'm amazed that it still works even though it supports Node.js v0.5 and probably even older versions of Node. Anyway, there's an undocumented option dsn, I'm not sure how it worked, you probably should look into the SMTP client code in simplesmtp module to check it out.
Willymar Juniarta
Suresh Kumar Sivasankaran
Hi everyone
I wanted to build a listener service for multiple email accounts by which I need to trigger event on receiving new email.
Can anyone help me how can I implement this?
https://github.com/chirag04/mail-listener2 can be used for one email id
I need to implement multiple
Hello - I'm having an odd issue in production (but not local) when sending an attachment using a filename as a string variable does not work when a string literal does work. so filename: name' wherevar name = 'test.xml'does not work butfilename:'test.xml'` sends fine... any thoughts?
Erik Demaine
@cookkb Sounds like a Javascript bug, not related to Nodemailer.
@AdamInTheOculus @edemaine Thanks for the input, after looking at my question and tweaking my code... my example wasn't written as clearly as it should be... My resolution was similar to that of @AdamInTheOculus on April 5... removing the contentType resolved the issue when using a variable for filename
Hassan Talat
hello, i am using nodemailer with smtp transport. i get successful response from nodemailer but the email does not end up in the inbox. any ideas what to do / check?
heres the transport object im using
          let transporter = nodemailer.createTransport({
            host: process.env.MAIL_DOMAIN,
            port: 465,
                rejectUnauthorized: false
            auth: {
                user: process.env.MAIL_USERNAME,
                pass: process.env.MAIL_PASSWORD
Andris Reinman
Nodemailer returns you whatever the MTA server (in your case process.env.MAIL_DOMAIN) returns to it, so you should check what happens with this message in that MTA server. If it's your own server (eg. a Postfix or Exim instance), check the mail log of that server. if you use a service (eg. SendGrid, Mailgun etc.) then these services usually provide an overview of delivered messages in their web interface.
Hello, Is there a way to send a mail directly to a SMTP server using nodemailer which is running behind a proxy. i.e. useProxy is true.
Basically, SMTP server expects PROXY header before handshake.
Could you please help in this ? cc @andris9
Hassan Talat
@andris9 yeah will have to check the mail server, debugger shows message being sent successfully but just does not ends up in the inbox.
Seán Hayes
I'm using the direct transport of nodemailer 2.6.4. I've just discovered that it stopped working. Earlier I was getting a very generic message that there was a failure, now transporter.sendMail() is just hanging forever
it just failed with "ServiceUnavailableError: Response timeout"

Hello, Is there a way to send a mail directly to a SMTP server using nodemailer which is running behind a proxy. i.e. useProxy is true.
Basically, SMTP server expects PROXY header before handshake.

Resolved !