Skip to content

Commit

Permalink
✨ Dynamically use STARTTLS based on port (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaaax0815 committed Mar 10, 2021
1 parent 01ab2e3 commit a22a4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service/email.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Email {
const transporter = nodemailer.createTransport({
host: host,
port: port,
secure: true,
secure: port === '465',
auth: {
user: username,
pass: password
Expand Down

0 comments on commit a22a4f3

Please sign in to comment.