I am trying to send emails via nodemailer without SMTP transport. So i\'ve done that:
var mail = require(\"nodemailer\").mail;
mail({
from: \"Fred Foo ✔ <
use nodemailer 0.7.1.
if you previously installed nodemailer then remove it by
npm remove nodemailer
now install it by
npm install nodemailer@0.7.1
the following code send mail without login, but it will work only in production environment, it won't work locally
var mail = require("nodemailer").mail;
mail({
from: "Fred Foo ✔ ", // sender address
to: "bar@blurdybloop.com, baz@blurdybloop.com", // list of receivers
subject: "Hello ✔", // Subject line
text: "Hello world ✔", // plaintext body
html: "Hello world ✔" // html body
});