MailMessage.Subject : MailMessage « System.Web.Mail « VB.Net by API






MailMessage.Subject

  

Imports System.Web.Mail

Module Module1

    Sub Main()
        Dim Smtp As SmtpMail
        Smtp.SmtpServer = "Put Your STMP Server Address Here"

        Dim Msg As MailMessage = New MailMessage()

        Msg.Body = "Demo message from a program"
        Msg.From = "fromEmail@SomeSite.com"
        Msg.To = "toEMail@SomeSite.com"
        Msg.Subject = "Demo Message"
        Smtp.Send(Msg)
    End Sub

End Module

   
    
  








Related examples in the same category

1.MailMessage.Attachments.Add
2.MailMessage.Body
3.MailMessage.From
4.MailMessage.To