how to send email from vb.net windows app

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
 
M

Michael Nemtsev

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>
 
S

sloan

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top