how to send email from vb.net windows app

  • Thread starter Thread starter shil
  • Start date Start date
S

shil

Hi all,

Can any one give me a sample code to send email from vb.net windows
application? (not from the web application).

Thanks
 
Hello shil,

See MailMessage class at MSDN http://msdn2.microsoft.com/en-us/library/system.net.mail.mailmessage.aspx

---
WBR, Michael Nemtsev [.NET/C# MVP].
My blog: http://spaces.live.com/laflour
Team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

s> Hi all,
s>
s> Can any one give me a sample code to send email from vb.net windows
s> application? (not from the web application).
s>
s> Thanks
s>
 
See

http://sholliday.spaces.live.com/blog/
2/8/2006
Smarter Email/Smtp setup with DotNet Configuration Sections (1.1 and 2.0)

Even if you're using 1.1, you add the System.Web assembly (why they did
that, I don't know).

In 2.0 there is a new namespace.

My example sends emails from a console app, which is just about the same
difference for a winforms app.
 
Back
Top