Skip to content

Instantly share code, notes, and snippets.

@alaingoldman
Created December 3, 2017 19:59
Show Gist options
  • Save alaingoldman/e99e3619152fa6c43dad3fb2885b504a to your computer and use it in GitHub Desktop.
Save alaingoldman/e99e3619152fa6c43dad3fb2885b504a to your computer and use it in GitHub Desktop.
Meteor.startup(function () {
// for reset password url
Accounts.urls.resetPassword = function(token) {
return Meteor.absoluteUrl('reset/' + token);
};
// for email setup
var options = {
apiKey: Meteor.settings.mailgun_apikey,
domain: Meteor.settings.mailgun_domain
}
var LootGun = new Mailgun(options);
Accounts.emailTemplates.from = '[email protected] ';
Accounts.emailTemplates.siteName = 'zzz.com';
Accounts.emailTemplates.verifyEmail.subject = function(user) {
return 'Confirm Your Email Address for MeteorFly';
};
Accounts.emailTemplates.verifyEmail.text = function(user, url) {
return 'Thank you for registering. Please click on the following link to verify your email address: \r\n' + url;
};
Accounts.config({
sendVerificationEmail: true
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment