Email from a windows form

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top