使用Namecheap电子邮件发送Nodemailer电子邮件 [英] Send Nodemailer e-mail with Namecheap email
本文介绍了使用Namecheap电子邮件发送Nodemailer电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经成功地将Gmail帐户与Xoauth连接起来,但是我最近获得了一个Namecheap私人电子邮件帐户,并且我一辈子都不知道如何设置它.这是我的代码:
I have been successful connecting a Gmail account with Xoauth, but I recently acquired a Namecheap privateemail account and can't for the life of me figure out how to set it up. This is the code that I have:
var smtp = nodemailer.createTransport({
host: 'mail.privateemail.com',
port: 25,
auth: {
user: 'contact@myemail.com',
pass: 'mypassword'
}
});
我看到了这个问题,并尝试了所有其他端口号
I saw this question and tried all the other port numbers.
推荐答案
在这种情况下,端口应该为465,这可能是安全连接
It may be secured connection in that case the port should be 465
用于SSL的465端口,用于TLS/STARTTLS的25或26端口
465 port for SSL, 25 or 26 for TLS/STARTTLS
这篇关于使用Namecheap电子邮件发送Nodemailer电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文