public void SendPasswordRecoveryKey(string activationCode, string MerchantEmail) { StringBuilder aBulider = new StringBuilder(); aBulider.Append("<html>"); aBulider.Append("<head></haed>"); aBulider.Append("<body>"); aBulider.Append("<h1>"); aBulider.Append("Payment Service !"); aBulider.Append("</h1>"); aBulider.Append("<br />"); aBulider.Append("<p>"); aBulider.Append("Your are requested to Recover you password <br/> Click given blow link to reset your password."); aBulider.Append("</p>"); aBulider.Append("<br />"); aBulider.Append("<p>"); aBulider.Append("<strong><a href='http://PaymentService.codemader.com/User/PasswordSetting?id=" + HttpUtility.UrlEncode(EncryptDecrypt.Encrypt(MerchantEmail)) + "&code=" + HttpUtility.UrlEncode(EncryptDecrypt.Encrypt(activationCode)) + "'> Click Here to Activate</a></strong>"); aBulider.Append("</p>"); aBulider.Append("<br />"); aBulider.Append("</body>"); aBulider.Append("</html>"); DALUtility.SendEmail(MerchantEmail, ConfigurationManager.AppSettings["FromEmail"].ToString(), "Activation Code", aBulider.ToString(), ConfigurationManager.AppSettings["GmailSMTP"].ToString(), ConfigurationManager.AppSettings["FromEmail"].ToString(), ConfigurationManager.AppSettings["Password"].ToString()); }
public void SendActivationCode(string activationCode, string MerchantEmail) { StringBuilder aBulider = new StringBuilder(); aBulider.Append("<html>"); aBulider.Append("<head></haed>"); aBulider.Append("<body>"); aBulider.Append("<h1>"); aBulider.Append("Payment Service !"); aBulider.Append("</h1>"); aBulider.Append("<br />"); aBulider.Append("<p>"); aBulider.Append("Your Account activation code is : <strong>" + EncryptDecrypt.Encrypt(activationCode) + "</strong>"); aBulider.Append("</p>"); aBulider.Append("<br />"); aBulider.Append("<p>"); aBulider.Append("<strong><a href='http://PaymentService.codemader.com/User/Activation?code=" + HttpUtility.UrlEncode(EncryptDecrypt.Encrypt(activationCode)) + "'> Click Here to Activate</a></strong>"); aBulider.Append("</p>"); aBulider.Append("<br />"); aBulider.Append("</body>"); aBulider.Append("</html>"); DALUtility.SendEmail(MerchantEmail, ConfigurationManager.AppSettings["FromEmail"].ToString(), "Activation Code", aBulider.ToString(), ConfigurationManager.AppSettings["GmailSMTP"].ToString(), ConfigurationManager.AppSettings["FromEmail"].ToString(), ConfigurationManager.AppSettings["Password"].ToString()); }