For Developers By Developers
You can integrate Mailazy in minutes with your platform. Build and monitor your email solution on a trusted foundation with technical and strategic support when you need it the most.
Configure SMTP with NodeJS
Prerequisites
You need to complete these given prerequisites, you can skip the step if you have already completed.
Sign up for a Mailazy account.
Complete Domain Authentication.
Generate the Mailazy Access Key
Integrate Mailazy with NodeJS;
Start Sending mail using the code provided below:
const nodemailer = require("nodemailer");
let transport = nodemailer.createTransport({
host: "smtp.mailazy.com",
port: 587,
auth: {
user: "access_key",
pass: "access_secret",
},
authMethod: "LOGIN",
secureConnection: true,
requiresAuth: true,
requireTLS: true
});
const message = {
from: "[email protected]", // Sender address
to: "[email protected]", // recipient address
subject: "Hello!", // Subject line
text: "Hello world!", // Plain text body
html: "Hello world!" // HTML body
};
transport.sendMail(message, function (err, info) {
console.log("here");
if (err) {
console.log(err);
} else {
console.log(info);
}
});
Send Emails with Mailazy
Mailazy is a simple email service to use, yet it provides so many benefits. Mailazy is the only simple transactional email service you’ll need. And the forever free plan lets you test drive it., Mailazy's team is well-equipped to help you quickly resolve your queries and issues. Try us for free today!
Signup for Free Developer DocumentationReady to get started?
For High-Volume custom requirements send us an email and we will come up with a detailed quote within 24 hours.
Contact Us