Message
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
System.Web.Mail has everything you need. -------------------------------------------------------- My portfolio & development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!
-
Hi, Mail code using SMTP mail server, using System.Web.Mail; //Code to send mail MailMessage mail = new MailMessage(); mail.To = "SentPerson@yahoo.com"; mail.Subject = "New Mail Test"; mail.Body = "Test mail sent"; mail.BodyEncoding = Encoding.ASCII; mail.BodyFormat = MailFormat.Html; SmtpMail.SmtpServer = "www.servername.com" //smtp server mail.From = "GetPerson@yahoo.co.in"; SmtpMail.Send(mail); Hope this help u...:)