我正在使用emailjs库发送电子邮件和配置smtp,但他们没有提供任何用于配置的电子邮件密码,前提是smtp的密码和用户名带有哈希var email =
require("../node_modules/emailjs/email");
var server = email.server.connect({
host: "email-smtp.us-east-1.amazonaws.com",
port: 587,
tls: true, // true for 465, false for other ports
user: "smtp hashed username", //
password: "smtp hased password" //
});
module.exports.sendMail = function (message) {
return server.send(message, function (err, message) {
console.log(err || message);
});
};