Author: sctl | Posted on: 4/7/2010 1:25:42 AM | Views : 262

hey, everyone pls help me. I already found out a lot example in internet and none of them able to send the email in my website! So, i hope everyone can help me to solve this problem, i just a novice in asp.net!!  I using my laptop as my server, i'm using IIS 7 with SMTP, window vista, using asp.net C#, here is my code :

SmtpClient smtpClient = new SmtpClient(); MailMessage message = new MailMessage(); try { MailAddress fromAddress = new MailAddress("mymail@hotmail.com"); smtpClient.Host = "localhost"; smtpClient.Port = 25; message.From = fromAddress; message.To.Add("clientemail@hotmail.com"); message.Subject = "testing"; message.IsBodyHtml = false; message.Body = "welcome"; smtpClient.Send(message); ...

Go to the complete details ...