Product
Docs
Resources
Log In

Sign Up

Error: nodemailer ssl3_get_record wrong version number

What's Causing This Error?

You may run into this error due to two reasons.

1. Older Nodemailer version

If you have installed an older version of Nodemailer, there may be outdated code in the library that can cause this error.

2. Invalid SMTP configuration

This error commonly occurs when connecting to the Microsoft SMTP server via Hotmail.

Solution - Here's How To Resolve It

You may try the following to resolve the error.

1. Install the latest version of Nodemailer

Ensure that you are running on the latest version of Nodemailer. To do so, run the command shown below.

1 2 // install the latest version of Nodemailer. npm i nodemailer

2. Verify SMTP configurations

Verify that you have provided the correct port, authentication type, username, and password in the SMTP configuration for Nodemailer. Additionally, if you use a service like Hotmail, Nodemailer provides an in-built service module with the required SMTP properties. Therefore, you only need to define the service you are using and the authentication credentials, while Nodemailer handles the SMTP configurations.

Consider the snippet below that lets Nodemailer automatically configure the Hotmail SMTP configuration.

1 2 3 4 var smtpTransport = nodemailer.createTransport('SMTP', { service: "Hotmail", auth: { user: 'username', pass: 'password' } });

Other Common Nodemailer Errors (and Solutions)

View all errors

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Product

Pricing

Providers

Developers

Documentation

API

Libraries

Status

© 2022 Courier. All rights reserved.