发布于 2015-08-19 02:15:09
mail.gmx.com不是“公共服务”--它是一个主机。你需要像这样使用host,port等来设置它。
var transporter = nodemailer.createTransport(smtpTransport({
host: 'mail.gmx.com',
port: 587,
secure: true,
auth: {
user: 'username',
pass: 'password'
}
}));发布于 2017-05-26 21:56:53
此nodemailer设置适用于测试目的邮件。之后,我们可以创建安全的或基于SSL的
var transporter = nodemailer.createTransport({
host: 'mail.gmx.com',
port: 587,
tls: {
ciphers:'SSLv3',
rejectUnauthorized: false
},
debug:true,
auth: {
user: '...@gmx.de',
pass: '...'
}
});发布于 2015-08-19 03:01:39
好吧,这对我来说是可行的:
var transporter = nodemailer.createTransport({
host: 'mail.gmx.com',
port: 587,
tls: {
ciphers:'SSLv3',
rejectUnauthorized: false
},
debug:true,
auth: {
user: '...@gmx.de',
pass: '...'
}
});我找到了基于this article的解决方案,但是"rejectUnauthorized: false“似乎不是一个好的解决方案……
https://stackoverflow.com/questions/32079684
复制相似问题