/// <summary> /// Sends email verification email. /// </summary> /// <param name="emailAddress">The email address.</param> /// <param name="id">The id.</param> internal void SendEmailVerificationEmail(string emailAddress, Guid id) { const string subject = "Verify your email address - Legato Network"; StringBuilder sb = new StringBuilder(); sb.Append("Hello!"); sb.Append(Environment.NewLine); sb.Append("Thank you for registering at Legato Network. To complete the sign up process, please verify your email address by clicking the link below."); sb.Append(Environment.NewLine); sb.Append(Environment.NewLine); sb.Append("Click this link to verify: "); sb.Append(ActionLinkExtensions.BuildURLFromRoot("/Account/Verify/" + id.ToString())); sb.Append(Environment.NewLine); sb.Append(Environment.NewLine); sb.Append("If you did not register for an account at Legato Network and believe you received this email in error, please ignore this message."); sb.Append(Environment.NewLine); sb.Append("- Legato Network :)"); string body = sb.ToString(); var netmessage = SendEmail.StandardNoReply(emailAddress, subject, body, false); SendEmail.Send(netmessage); }
/// <summary> /// Sends email verification email. /// </summary> /// <param name="emailAddress">The email address.</param> /// <param name="id">The id.</param> internal void SendForgotOpenIDEmail(string emailAddress, string openID) { const string subject = "OpenID retrieval - Legato Network"; StringBuilder sb = new StringBuilder(); sb.Append("Hello!"); sb.Append(Environment.NewLine); sb.Append("Someone requested the OpenID belonging to this email address at the Legato Network."); sb.Append(Environment.NewLine); sb.Append(Environment.NewLine); sb.Append("The OpenID belonging to the user with this email address is: "); sb.Append(openID); sb.Append(Environment.NewLine); sb.Append("To log in, go to: " + ActionLinkExtensions.BuildURLFromRoot("/Account/Login")); sb.Append(Environment.NewLine); sb.Append(Environment.NewLine); sb.Append("If you did not register for an account at Legato Network and believe you received this email in error, please ignore this message."); sb.Append(Environment.NewLine); sb.Append("- Legato Network :)"); string body = sb.ToString(); var netmessage = SendEmail.StandardNoReply(emailAddress, subject, body, false); SendEmail.Send(netmessage); }
/// <summary> /// Sends password reset emails. /// </summary> /// <param name="emailAddress">The email address.</param> /// <param name="id">The id.</param> internal void SendPasswordResetEmail(string emailAddress, Guid id) { const string subject = "Reset your password - Legato Network"; StringBuilder sb = new StringBuilder(); sb.Append("Hello!"); sb.Append(Environment.NewLine); sb.Append("You have selected to reset your password. To do so, please follow the link below."); sb.Append(Environment.NewLine); sb.Append(Environment.NewLine); sb.Append("Click this link to reset your password: "******"/Account/Options/ResetPassword/")); sb.Append(id.ToString()); sb.Append(Environment.NewLine); sb.Append(Environment.NewLine); sb.Append("If you did NOT select to reset your password at Legato Network and believe you received this email in error, please ignore this message."); sb.Append(Environment.NewLine); sb.Append("- Legato Network :)"); string body = sb.ToString(); var netmessage = SendEmail.StandardNoReply(emailAddress, subject, body, false); SendEmail.Send(netmessage); }