Nodemailer: " Error: Greeting never received" problem

Created on 31 May 2015  路  6Comments  路  Source: nodemailer/nodemailer

The version:
"nodemailer": "^1.3.4",

I just tried several different mail service but always have this issue. I turn ssl authentication on, the code is like:

ssl: true

or

secureConnection: true

I do not know what is the problem :(

Most helpful comment

Just experienced this as well.
Fixed using secureConnection: true and port: 465.

All 6 comments

Just experienced this as well.
Fixed using secureConnection: true and port: 465.

I also encountered this problem,do not know what is the problem too. :cry:

This usually happens when the server expects encrypted connection but you start out as plaintext. To connect to secure servers you should use the following setup (note the secure option):

var transporter = nodemailer.createTransport({
    host: 'localhost',
    port: 465,
    secure: true,
    auth: {
        user: 'username',
        pass: 'password'
    }
});

@andris9 it haha ,solved

Thank you @andris9

Just experienced this as well.
Fixed using secureConnection: true and port: 465.

This solved it for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Nedudi picture Nedudi  路  5Comments

uiteoi picture uiteoi  路  5Comments

anonprophet picture anonprophet  路  3Comments

mohammedSlimani picture mohammedSlimani  路  4Comments

abhishekdgeek picture abhishekdgeek  路  5Comments