| Send a simple email .NET |
|
|
|
| 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]
|


