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.

Trusted by 120+ partners and delivering over 650 Million emails/month

Configure Password reset emails with SMTP for Netlify

Password reset emails is an important component of any email communication strategy. In order to ensure delivery of Password reset emails to your customers, reply on a trusted cloud-based email provider like Mailazy as a partner in your growth journey.

Prerequisites

You need to complete these given prerequisites, you can skip the step if you have already completed.

  1. Sign up for a Mailazy account.

  2. Complete Domain Authentication.

  3. Generate the Mailazy Access Key

Integrate Mailazy with Netlify

Sending emails using Netlify lambda Functions.

require("dotenv").config(); // read .env file if present.
const nodemailer = require("nodemailer");
exports.handler = function(event, context, callback) {
const user = process.env.mailazy_apikey; // get from your mailazy account
const pass = process.env.mailazy_secret; // get from your mailazy account

let transporter = nodemailer.createTransport({
  host: "smtp.mailazy.com",
  port: 587,
  secure: false,
  auth: { user, pass }
});

// Parse data sent in form hook (email, name etc)
const { data } = JSON.parse(event.body);

// make sure we have data and email
if (!data || !data.email) {
  return callback(null, {
    statusCode: 400,
    body: 'Mailing details not provided'
  })
}

let mailOptions = {
  from: "UserName",
  to: data.email, // send to email from contact form
  subject: "Contact submission received!",
  html: “Your Email Body goes here with Bold”
};

transporter.sendMail(mailOptions, (error, info) => {
  // handle errors
  if (error) {
    return callback(null, {
      statusCode: 500,
      body: JSON.stringify(error)
    });
  }

  // success!
  callback(null, {
    statusCode: 200,
    body: "mail sent"
  });
});
};

Send transactional emails with Mailazy

Mailazy email delivery platform is powered by AI and uses the global infrastructure so that you can scale effortlessly. Mailazy is the trusted transactional email provider for hundreds of businesses and we are growing every day. We are known for being the most reliable and trusted senders on the internet.

Ready to get started?

Get started — it's free