what controls need to use in asp.net
can any one help me?..
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satyapriya NayakRank #47 · 31.5K reputationPosted Nov 27, 2013, 1:06 AM EST
Abhay ShankerRank #375 · 6.7K reputationPosted Nov 27, 2013, 1:37 AM EST
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