what controls need to use in asp.net
can any one help me?..
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhay ShankerPosted Nov 27, 2013, 6:37 AM
Hi,
Use code like below.
Dim mail As New MailMessage()
mail.To.Add(new MailAddress("[email protected]"));
mail.To.Add(new MailAddress("[email protected]"));
mail.To.Add(new MailAddress("[email protected]"));
mail.From = "[email protected]"
mail.Subject = "this is a test email."
mail.Body = "this is my test email body."
SmtpMail.SmtpServer = "localhost" 'your real server goes here
SmtpMail.Send(mail)
you can call it by a method on any event as your requirement
Satyapriya NayakPosted Nov 27, 2013, 6:06 AM