Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

" Error: Greeting never received" problem #441

Closed
JYC-99 opened this issue May 31, 2015 · 8 comments
Closed

" Error: Greeting never received" problem #441

JYC-99 opened this issue May 31, 2015 · 8 comments

Comments

@JYC-99
Copy link

JYC-99 commented May 31, 2015

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 :(

@ghost
Copy link

ghost commented Jul 10, 2015

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

@jaylinwang
Copy link

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

@andris9
Copy link
Member

andris9 commented Aug 24, 2015

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'
    }
});

@tathagata6
Copy link

@andris9 it haha ,solved

@HassanChiang
Copy link

Thank you @andris9

petrus-v pushed a commit to petrus-v/docs-1 that referenced this issue Mar 21, 2019
Following instruction based on this comment nodemailer/nodemailer#441 (comment)
fixed the suspicious ``Greeting never received`` error while sending emails
ErisDS pushed a commit to TryGhost/docs that referenced this issue Apr 1, 2019
Following instruction based on this comment nodemailer/nodemailer#441 (comment)
fixed the suspicious ``Greeting never received`` error while sending emails
@AtomicCommits
Copy link

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

This solved it for me

@carepollo
Copy link

carepollo commented Jun 29, 2022

I tried this and yet getting Error: connect ECONNREFUSED 127.0.0.1:465

@Itachii27
Copy link

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

I used secureConnection: true and it worked for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants