When users register on my site I send them activation mails.
I recently updated the message users receive in the mail but users are still receiving the old message. Anyone know why?
Sorry.
I'm using C#, my website is in ASP.NET MVC.
I'm using a class I've created, Mail.cs, where I create the MailMessage which looks something like this,
public static MailMessage RegistrationMessage(string userName, string userEmail)
{
using (MailMessage message = new MailMessage())
{
message.From = Mail.MailAdress();
message.To.Add(new MailAddress(userEmail));
message.Subject = "Your activation mail";
message.Body = String.Format(@"Thank you, {0} for joining us!<br/>
Here's your activation link to activate your new account.<br/>
http://www.mywebsite.com/Account/Activate/{0}<br/>
We hope you'll enjoy your stay!", userName);
return message;
}
}
And then the code that sends the mail in another method,
SmtpClient smtp = new SmtpClient();
smtp.Send(Mail.RegistrationMessage(userInformation.userName, userInformation.email));