Log In

Step 1

Please make sure that you have installed nodemailer.

Step 2

Please change the following in this script:

  • sender@example.com: the sender’s email address.
  • recipient@example.com: the recipient’s email address.
  • USERNAME: your SMTP2GO username.
  • PASSWORD: your SMTP2GO password.
var nodemailer = require("nodemailer");

var smtpTransport = nodemailer.createTransport("SMTP",{
host: "mail.smtp2go.com",
port: 2525, // 8025, 587 and 25 can also be used.
auth: {
user: "USERNAME",
pass: "PASSWORD"

from: "Sender Name ",
to: "Recipient Name ",
subject: "Your Subject",
text: "It is a test message"
}, function(error, response){
console.log("Message sent: " + response.message);

Ready for better email delivery?

Try SMTP2GO free for as long as you like:

Try SMTP2GO Free → Paid plans available for over 1,000 emails/month.