Home General VB.NET Send a simple email .NET
20 | 05 | 2012
This site has been updated and renewed. You have followed an old link.

Click here to go to the new site

http://www.visiblevisual.com/jupgrade

Send a simple email .NET PDF Print E-mail
User Rating: / 0
PoorBest 
Tutorials

Send a simple email using vb.net

[code]

 

 

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 e-mail address is being protected from spambots. You need JavaScript enabled to view it "
        Msg.To = " This e-mail address is being protected from spambots. You need JavaScript enabled to view it "
        Msg.Subject = "Email Subject"
        Smtp.Send (Msg)
 
    End Sub
[/code]
 

Add comment


Security code
Refresh

This site has been updated and renewed. You have followed an old link.

Click here to go to the new site

http://www.visiblevisual.com/jupgrade