I'm just trying to send verification email in Meteor, based on this docs: https://github.com/Shekharrajak/meteor-email , it returns the error below. I followed the doc verbatim.
My code
import { Meteor } from 'meteor/meteor';
if (Meteor.isServer){
Meteor.startup(() => {
process.env.MAIL_URL="smtp://mygmailaddress%40gmail.com:mypassword@smtp.gmail.com:465/";
});
Email.send({
to: "sendeto@yahoo.com",
from: "sendfrom@gmail.com",
subject: "Example Email",
text: "The contents of our email in plain text.",
});
}
Error message:
W20170420-14:49:33.820(1)? (STDERR) js-bson: Failed to load c++ bson extension, using pure JS version
I20170420-14:49:34.997(1)? ====== BEGIN MAIL #0 ======
I20170420-14:49:34.998(1)? (Mail not sent; to enable sending, set the MAIL_URL environment variable.)
I20170420-14:49:35.019(1)? Content-Type: text/plain
I20170420-14:49:35.021(1)? From: kehindeadeoya@gmail.com
I20170420-14:49:35.023(1)? To: ken4ward@yahoo.com
I20170420-14:49:35.026(1)? Subject: Example Email
I20170420-14:49:35.027(1)? Message-ID: <6b59f210-f727-aff3-2695-335a774e936a@gmail.com>
I20170420-14:49:35.028(1)? Content-Transfer-Encoding: 7bit
I20170420-14:49:35.031(1)? Date: Thu, 20 Apr 2017 13:49:35 +0000
I20170420-14:49:35.032(1)? MIME-Version: 1.0
I20170420-14:49:35.034(1)?
I20170420-14:49:35.050(1)? The contents of our email in plain text.
I20170420-14:49:35.052(1)? ====== END MAIL #0 ======
What am i to do right? Please assist.