hi!i'am try send mail by this code.But it don't work!please check this code where error?
public void SendMessage()
{
string body = "Registration for some Registration website\n\n";
body += "Name: " + txtfname.Text + "\n";
body += "Email: " + txtemail.Text + "\n";
body = "Xin Chuc mung ban da dang ky thanh cong!";
try
{
MailMessage msg = new MailMessage();
msg.IsBodyHtml = true;
msg.From = new MailAddress("newtechbookstore@yahoo.com.vn");
msg.To.Add(new MailAddress(txtemail.Text));
msg.Subject = "Thanks for register";
msg.Body = body;
SmtpClient client = new SmtpClient("smtp.mail.yahoo.com", 25);
client.Credentials = new Netw ...
Go to the complete details ...