Hello, I have been trying to use SMTP and MailMessage and I am able to send messages easily and use html for text. But when I place a hyperlink url, it is not display at all in the message. Please help: This is my code.
string ConfirmID = System.Guid.NewGuid().ToString();
IDConfirm.Value = ConfirmID;
MailMessage mail = new MailMessage("senderemail", "recepientemail");
//set the content
mail.Subject = "Title";
mail.IsBodyHtml = true;
string siteurl = "https://website/content/confirm.aspx";
string smsg = "<p><b>Please activate your confirmation by clicking here:</b></p><a href=" + siteurl + "?ConfirmID=" + ConfirmID + "></a>";
mail.Body = smsg;
//send the message
SmtpClient smtp = new SmtpClient();
smtp.Send(mail);
...
Go to the complete details ...