View Single Post
  #3 (permalink)  
Old August 17th, 2009, 08:33 AM
tomche tomche is offline
Authorized User
Points: 297, Level: 5
Points: 297, Level: 5 Points: 297, Level: 5 Points: 297, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2009
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Imar you are a legend.

I changed the code to the following

message += "<strong>Query String</strong><br />" + Request.QueryString.ToString() + "<br />";

SmtpClient mySmtpClient = newSmtpClient();
MailMessage myMessage = newMailMessage("stemcell74@gmail.com",
"stemcell74@gmail.com", mailSubject, message);
mySmtpClient.Port = 587;
mySmtpClient.Credentials =
new System.Net.NetworkCredential("stemcell74@gmail.com", "mypassword");
mySmtpClient.EnableSsl =
true;
myMessage.IsBodyHtml =
true;
mySmtpClient.Send(myMessage);
}
}
void Session_Start(object sender, EventArgs e)


Cheeers

tomche
Reply With Quote