node.jsemailnodemailernamecheap

Send Nodemailer e-mail with Namecheap email


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.


Solution

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

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