June 2003
Intermediate to advanced
800 pages
34h 20m
English
You want to send an e-mail address using a Simple Mail Transfer Protocol (SMTP) server.
Use the SmtpMail and MailMessage classes in the System.Web.Mail namespace.
The classes in the System.Web.Mail namespace provide a bare-bones wrapper for the Collaboration Data Objects for Windows 2000 (CDOSYS) component. They allow you to compose and send formatted e-mail messages using SMTP.
Using these types is easy. You simply create a MailMessage object, specify the sender and recipient e-mail address, and place the message content in the Body property:
Dim MyMessage As New MailMessage() MyMessage.To = "someone@somewhere.com" MyMessage.From = "me@somewhere.com" MyMessage.Subject = "Hello" MyMessage.Priority ...
Read now
Unlock full access