Email from a windows form

G

Guest

Hi all,

Does anyone know how to send an email from a Windows form?

On an ASP.NET form you can use the System.Web.Mail
namespace and create a MailMessage object. I get an
error message when I try a "Using System.Web.Mail;" in a
Windows form. There must be an easy way to do this.

Any help would be appreciated.

Thank you in advance, Michael McTaggart.
 
J

Jeffrey Tan[MSFT]

Hi michael,

Yes, just as bob said, you can use System.Web.Mail.SmtpMail to send email
in WinForm.
You can find a sample in MSDN System.Web.Mail.SmtpMail class.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 

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