25 | 03 | 2017

Send a simple email .NET

Send a simple email using vb.net

Imports System.Web.Mail
 
    Sub Main()
 
        '*************************************
        '**** Code from VisibleVisual.com ****
        '*************************************
        Dim Smtp As SmtpMail
 
        Smtp.SmtpServer = "Add smtp server addres"
 
        Dim Msg As MailMessage = New MailMessage()
 
        Msg.Body = "Text in the body of the email"
        Msg.From = "This email address is being protected from spambots. You need JavaScript enabled to view it."
        Msg.To = "This email address is being protected from spambots. You need JavaScript enabled to view it."
        Msg.Subject = "Email Subject"
        Smtp.Send (Msg)
 
    End Sub
Login

Sign up now and upload your code to the website.

Help us to continue.....
Statistics
Articles View Hits
2208265
Latest Articles