Name
SmtpMail
Synopsis
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
Get ASP.NET in a Nutshell 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.