Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodemailer send email

const nodemailer = require("nodemailer");

let transporter = nodemailer.createTransport(
  {
    service: "gmail",
    host: "smtp.gmail.com",
    port: 465,
    auth: {
      user: "userEmail", // generated ethereal user
      pass: process.env.emailPass, // generated ethereal password
    },
  },
  {
    from: "<userEmail>",
  }
);
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #nodemailer #send #email
ADD COMMENT
Topic
Name
9+5 =