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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access