Add SMTP support for AWS SES and docs for it

This commit is contained in:
Tuan Dang
2023-01-13 20:25:13 +07:00
parent 0f151fcd7a
commit 29592a1e9e
4 changed files with 32 additions and 4 deletions
+7 -1
View File
@@ -28,7 +28,13 @@ if (SMTP_SECURE) {
}
break;
default:
mailOpts.secure = true;
if (SMTP_HOST.includes('amazonaws.com')) {
mailOpts.tls = {
ciphers: 'TLSv1.2'
}
} else {
mailOpts.secure = true;
}
break;
}
}