Send Nodemailer e-mail with Namecheap email

南楼画角 提交于 2020-03-02 12:19:24

问题


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.


回答1:


It may be secured connection in that case the port should be 465

465 port for SSL, 25 or 26 for TLS/STARTTLS




回答2:


According to Namecheap support website as of Nov 7, 2017 - configuration to send messages through Namecheap Private Email server:

Outgoing server (SMTP): port 465 for SSL, port 587 for TLS/STARTTLS

Outgoing server authentication should be switched on,
SPA (secure password authentication) must be disabled.


来源:https://stackoverflow.com/questions/39197000/send-nodemailer-e-mail-with-namecheap-email

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!