Skip to content

Instantly share code, notes, and snippets.

View ElvisDev187's full-sized avatar

Elvis Lambou ElvisDev187

View GitHub Profile
@ElvisDev187
ElvisDev187 / config.ts
Last active November 2, 2023 23:25
Usage of nodemailer an Brevo.com to send mail with smtp
import * as nodemailer from "nodemailer";
const email = process.env.EMAIL_SERVER_USER;
const pass = process.env.EMAIL_SERVER_PASSWORD;
const host = process.env.EMAIL_SERVER_HOST;
export const transporter = nodemailer.createTransport({
host: host,
port: 587,