O'Reilly logo

Special Edition Using Microsoft® Visual Basic® .NET by Jeff Spotts, Brian Siler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the SmtpMail Class to Add E-mail Functionality to an Application

Visual Basic .NET’s SmtpMail class is provided to allow your applications to send e-mail messages. It utilizes the Simple Mail Transfer Protocol (SMTP), which is the Internet standard for sending e-mail messages. The SmtpMail class uses the SMTP service built into Windows 2000 (and later versions) to pass a MailMessage object to an SMTP server, which in turn forwards the message to the intended recipient.

Sending Mail Messages with the MailMessage Class

The workhorse of the SmtpMail class is the MailMessage class, which provides the methods and properties necessary to send an e-mail message. To send an e-mail message, you create an instance of the MailMessage class, set ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required