SMTPMail API

This API is made up of three classes:

  • SMTPMail class Used to send the email.

  • SMTPMessage class Used to create an email message.

  • SMTPAttachement class Used to represent a file-based attachment to a message.

The SMTPMail Class

The SMTPMail class provides the capability to send email and email attachments using the SMTPMail service built into Microsoft Windows 2000.

The SMTPMail class property is SmtpServer, which gets or sets the name of the local SMTP server being used.

The SMTPMail class method is Send, which is used to send a MailMessage object to a previously defined SMTPmail server.

The MailMessage Class

This class is used to construct and configure email messages for use with the SMTPMail class. Table B.16 shows the MailMessage ...

Get Inside ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.