June 2002
Intermediate to advanced
816 pages
28h 12m
English
SmtpMail
The SmtpMail class represents the SMTP Server. It includes a shared (static) Send() method that you can use to send email programmatically. There are two versions of the Send() method: one accepts a MailMessage object, and the other provides a
quick and simple way to send an e-mail message without creating a MailMessage instance (by specifying the
sender’s e-mail address, the recipient, the subject, and the body text as string
parameters).
Public Class SmtpMail ' Public Shared Properties Public Shared Property SmtpServer As String ' Public Shared Methods Public Shared Sub Send(ByVal message As MailMessage) Public Shared Sub Send(ByVal from As String, ByVal to As String, ByVal subject As String, ByVal messageText As String) End Class
Read now
Unlock full access