hi ...
i want send email in the my application server to other email address..
below the code i used but not working plz help me.......
Code
header file:
using System.Web.Mail;
//if i click the button send mail to other email address..i used below the code........
MailMessage mail = new MailMessage();
mail.To = "mymail@gmail.com";
mail.From = "mymail@gmail.com";
mail.Subject ="welcome";
mail.Body = "welcome";
SmtpMail.SmtpServer = "www.lbmglobal.com";// server name
SmtpMail.Send(mail);
Response.Write("Email was queued to disk");
please check this code or give another code..........
Thank u...