I use package email, on localhost everything good, but in real device not working (the email does not come)
file root ‘server/smtp.js’
Meteor.startup(function(){
process.env.MAIL_URL = ‘smtp://x@gmail.x@smtp.gmail.com:587/’
});
Meteor.methods({
sendEmail: function (to, name, message) {
his.unblock();
Email.send({
to: 'x@gmail.com',
from: 'x@gmail.com',
subject: 'Incoming message',
text: 'message'
});
}
});
and ‘client/file.js’
Meteor.call('sendEmail', email.value, name.value, message.value);