user254197
user254197

Reputation: 881

Nodemailer for GMX

I wrote my code based on this article.

Code:

var transporter = nodemailer.createTransport({
service: 'mail.gmx.com',
auth: {
    user: '[email protected]',
    pass: '...'
}

});

"Nodemailer is not defined" or "ECONNREFUSED".

The connection informations I got from Link1 and Link2.

Any experiences with GMX ?

Upvotes: 1

Views: 3212

Answers (4)

user3755985
user3755985

Reputation: 41

I got the same problem with web.de-Mail. You have to check the WWW-Site your emails an there is a hint from the provider. You have to activate smtp/pop3! there. For security reasons.

 let transporter = createTransport({
                host: 'smtp.web.de',
                port: 587,
                tls:{
                    ciphers : 'SSLv3',
                    rejectUnauthorized: false
                },
                auth:{
                        user: '[email protected]',
                        pass: '......'
                }
            });

Upvotes: 1

Kamlesh
Kamlesh

Reputation: 21

This nodemailer settings are working for testing purpose mail. After that we can make secure or SSL based

var transporter = nodemailer.createTransport({
  host: 'mail.gmx.com',
  port: 587,
  tls: {
    ciphers:'SSLv3',
    rejectUnauthorized: false
  },
  debug:true,
    auth: {
    user: '[email protected]',
    pass: '...'
  }
});

Upvotes: 2

user254197
user254197

Reputation: 881

Ok, this works out for me:

    var transporter = nodemailer.createTransport({
    host: 'mail.gmx.com',
    port: 587,
    tls: {
        ciphers:'SSLv3',
        rejectUnauthorized: false
    },
    debug:true,
        auth: {
        user: '[email protected]',
        pass: '...'
    }
});

I found the solution based on this article, but "rejectUnauthorized: false" seems not to be a good solution...

Upvotes: 1

Randy
Randy

Reputation: 4391

mail.gmx.com is not a 'common service' - it's a host. You'll need to set it up like this using host, port, etc.

var transporter = nodemailer.createTransport(smtpTransport({
    host: 'mail.gmx.com',
    port: 587,
    secure: true,
    auth: {
        user: 'username',
        pass: 'password'
    }
}));

Upvotes: 2

Related Questions