//Send Security Code protected string sendSecurityCode(string email) { string securityCode; securityCode = generateSecurityCode(); if (MyCVConfig.MailFunction(string.Format("Please use the security code below to activate your acount <br> <br> " + securityCode), email, "MyCV Limited Security Code")) { Response.Write("<script>alert('A Security code has been sent to your email " + email + ". Please login to your email and use the security code to reset your password')</script>"); } else { Response.Write("<script>alert('An error occured while sending you the security code')</script>"); } return(securityCode); }
//Send Activation Code protected string sendActivationCode(string Name, string email) { string activationCode; activationCode = generateActivationCode(); if (MyCVConfig.MailFunction(string.Format("Dear " + Name + ", You recently signed up at MyCVLimited.com." + " Please use the activation code below to activate your acount <br> <br> " + activationCode), email, "MyCV Limited Activation Code")) { Response.Write("<script>alert('An Activation code has been sent to your email " + email + ". Please login to your email and use the activation code to activate your account')</script>"); } else { Response.Write("<script>alert('An error occured while sending you the activation code')</script>"); } return(activationCode); }