A cool meteor package that suggests a right domain when your users misspell it in the accounts-ui email address.
Please check the full documentation from the mailcheck repository.
meteor add accounts-ui
meteor add accounts-password
meteor add anbuselvan:accounts-ui-mailcheck
MeteorMailCheck.EmailPrefixText = "Did you mean";
MeteorMailCheck.EmailSuffixText = "?";
MeteorMailCheck.DisableClickEvent = false;
MeteorMailCheck.EnableAutoHide = false;
MeteorMailCheck.AutoHideDelay = 3000;
MeteorMailCheck.AutoHideOnFocus = false;
if (Meteor.isClient) {
Meteor.startup(function() {
//update with your custom text
MeteorMailCheck.EmailPrefixText = "Suggested email: ";
MeteorMailCheck.EmailSuffixText = "";
// set auto hide preferences
MeteorMailCheck.EnableAutoHide = true;
MeteorMailCheck.AutoHideDelay = 5000;
MeteorMailCheck.AutoHideOnFocus = true;
//initialize mailcheck
MeteorMailCheck.init();
});
});
#mailcheck-suggestion-text {
font-size: 75%;
text-align: right;
}
.mailcheck-suggestion-email {
font-size: 75%;
text-decoration: underline;
cursor: pointer;
}
Check the mailcheck-test project from examples/mailcheck-test folder.