Skip to content

Commit cb738cc

Browse files
committed
added: SELF_SIGNED_CERT_IN_CHAIN
1 parent 31db193 commit cb738cc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

email-send/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ mail.on('error', function (err) {
1818

1919
// SEND via GMAIL
2020
// message.send('smtp.gmail.com', { port: 465, secure: true, user: 'ENTER_YOUR_EMAIL', password: 'ENTER_YOUR_PASSWORD' });
21+
// SOLUTION [Error: SELF_SIGNED_CERT_IN_CHAIN]: message.send('smtp.gmail.com', { port: 465, secure: true, user: 'ENTER_YOUR_EMAIL', password: 'ENTER_YOUR_PASSWORD', rejectUnauthorized: true });
2122

2223
// SEND via AUTH BASIC SMTP
2324
// message.send('smtp.yourdomain.com', { user: 'ENTER_YOUR_EMAIL', password: 'ENTER_YOUR_PASSWORD' });

0 commit comments

Comments
 (0)