Created
December 3, 2017 19:59
-
-
Save alaingoldman/e99e3619152fa6c43dad3fb2885b504a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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