Home > OS >  Nodemailer email sended but not received
Nodemailer email sended but not received

Time:09-14

I've loked arround the internet for some solutions people propose, but any of them works for me fe: this one or this other one, even using the example code from Nodemailer website, i get on console

Message sent: <[email protected]>
Preview URL: https://ethereal.email/message/Yxi21TBgBufqRAO3Yxi21mTcOrtHln6cAAAAAXYGM7S1KpoqqzcPthnCZbg

But email never arrives.

If it helps, using typescript the code i'm using is

"use strict";
const nodemailer = require("nodemailer");

async function main() {
  let testAccount = await nodemailer.createTestAccount();

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

  let info = await transporter.sendMail({
    from: '"Fred Foo            
  • Related