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
The documentation here states that the default Mailgun MAIL_URL may be overridden by setting process.env.MAIL_URL, however this does not appear to be the case. The documentation states:
For apps deployed with meteor deploy, MAIL_URL defaults to an account (provided by Mailgun) which allows apps to send up to 200 emails per day; you may override this default by assigning to process.env.MAIL_URL before your first call to Email.send.
However, Mailgun is always used despite the process.env.MAIL_URL setting. To reproduce:
create new meteor app
add below js code
modify code to specific smtp provider (such as from Mandrill) and appropriate from and to email addresses
deploy to a *.meteor.com domain using meteor deploy
visit the domain and click the button
verify that email is from Mailgun and not the smtp provider specified in process.env.MAIL_URL
if (Meteor.isClient) {
Template.hello.greeting = function () {
return "Welcome to testmail.";
};
Template.hello.events({
'click input' : function () {
Meteor.call('sendEmail',
'xxx@gmail.com',
'xxx@domain.com',
'Hello from Meteor!',
'This is a test of Email.send.');
}
});
}
if (Meteor.isServer) {
Meteor.methods({
sendEmail: function (to, from, subject, text) {
check([to, from, subject, text], [String]);
this.unblock();
Email.send({
to: to,
from: from,
subject: subject,
text: text
});
}
});
Meteor.startup(function () {
process.env.MAIL_URL = 'smtp://user:password@smtp.mandrillapp.com:587/';
});
}
If this behavior is intended, then please update documentation to reflect this.
The documentation here states that the default Mailgun MAIL_URL may be overridden by setting process.env.MAIL_URL, however this does not appear to be the case. The documentation states:
However, Mailgun is always used despite the process.env.MAIL_URL setting. To reproduce:
create new meteor app
add below js code
modify code to specific smtp provider (such as from Mandrill) and appropriate from and to email addresses
deploy to a *.meteor.com domain using meteor deploy
visit the domain and click the button
verify that email is from Mailgun and not the smtp provider specified in process.env.MAIL_URL
If this behavior is intended, then please update documentation to reflect this.
See Stack Overflow thread http://stackoverflow.com/questions/20337309/meteor-deploy-mail-url-not-being-set for more details
The text was updated successfully, but these errors were encountered: