// SendEmailVerfication sends an email verification token via email. func SendEmailVerfication(to string, token string, locale string) error { T, _ := i18n.Tfunc(locale) err := email.SendEmailFromAdmin(to, T("verify_email_title"), T("link")+" : "+config.HostURL+"/verify/email/"+token, T("verify_email_content")+"<br/><a href=\""+config.HostURL+"/verify/email/"+token+"\" target=\"_blank\">"+config.HostURL+"/verify/email/"+token+"</a>") return err }
// SendEmailPasswordResetToken sends a password reset token via email. func SendEmailPasswordResetToken(to string, token string, locale string) error { T, _ := i18n.Tfunc(locale) err := email.SendEmailFromAdmin(to, T("reset_password_title"), T("link")+" : "+config.HostURL+"/reset/password/"+token, T("reset_password_content")+"<br/><a href=\""+config.HostURL+"/reset/password/"+token+"\" target=\"_blank\">"+config.HostURL+"/reset/password/"+token+"</a>") return err }