You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Searched the documentation but couldn't find anything related to it and the sendMail response doesn't contain it
constnodemailer=require("nodemailer");consttransporter=nodemailer.createTransport({host: "smtp.ethereal.email",port: 587,secure: false,// true for port 465, false for other portsauth: {user: "maddison53@ethereal.email",pass: "jn7jnAPss4f63QBp6D",},});// async..await is not allowed in global scope, must use a wrapperasyncfunctionmain(){// send mail with defined transport objectconstinfo=awaittransporter.sendMail({from: '"Maddison Foo Koch 👻" <maddison53@ethereal.email>',// sender addressto: "bar@example.com, baz@example.com",// list of receiverssubject: "Hello ✔",// Subject linetext: "Hello world?",// plain text bodyhtml: "<b>Hello world?</b>",// html body});console.log("Message sent: %s",info.messageId);// Message sent: <d786aa62-4e0a-070a-47ed-0b0666549519@ethereal.email>// Get headers hereconstheaders=info.headers;}main().catch(console.error);
The text was updated successfully, but these errors were encountered:
Searched the documentation but couldn't find anything related to it and the
sendMail
response doesn't contain itThe text was updated successfully, but these errors were encountered: