Skip to content

Commit

Permalink
* (Apollon77) Fix mail.ee settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Apollon77 committed May 18, 2022
1 parent 1889334 commit 8fc75f1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ To send email from other adapter use **adapter.sendTo** function.
For other services see documentation of **Nodemailer**: `[https://github.com/nodemailer/nodemailer](https://github.com/nodemailer/nodemailer)`

## Changelog

### __WORK IN PROGRESS__
* (Apollon77) Fix mail.ee settings

### 1.1.1 (2022-05-18)
* (Apollon77) Allow to use connections to port 25 unencrypted

Expand Down
13 changes: 13 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,19 @@ function sendEmail(adapter, transport, options, message, callback) {
options.port = '587';
//noinspection JSUnresolvedVariable
delete options.service;
} else if (options.service === 'mail.ee') {
//noinspection JSUnresolvedVariable
//options.secureConnection = false;
//noinspection JSUnresolvedVariable
options.tls = {ciphers: 'SSLv3', rejectUnauthorized: false };
//noinspection JSUnresolvedVariable
options.requireTLS = true;
//noinspection JSUnresolvedVariable
options.host = 'mail.ee';
//noinspection JSUnresolvedVariable
options.port = '587';
//noinspection JSUnresolvedVariable
delete options.service;
}
//noinspection JSUnresolvedFunction, JSUnresolvedVariable
transport = require('nodemailer').createTransport(options);
Expand Down

0 comments on commit 8fc75f1

Please sign in to comment.