VB.NET send email vb.net - Net-Raft.com

Welcome aboard! We are happy you are here and wish you good net-raft!




Just a Web Code Solution

send email vb.net


 23

VB.NET


0

'create the mail message
Dim mail As New MailMessage()

'set the addresses
mail.From = New MailAddress("xx@xx")
mail.[To].Add("xx@xx")

'set the content
mail.Subject = "subject"
mail.Body = "body"

'set the server
Dim smtp As New SmtpClient("localhost")

'send the message
Try
smtp.Send(mail)
Response.Write("Your Email has been sent sucessfully!")
Catch exc As Exception
Response.Write("Send failure: " & exc.ToString())
End Try


By     Created   
The power of the user (%)
3%



The most helpful VB.NET solutions

get computer name vb.net get computer name vb.net VB.NET

Click to see more ...

  534     66

array vb.netarray vb.netVB.NET

Click to see more ...

  338     55

get client country vb.netget client country vb.netVB.NET

Click to see more ...

  222     52

get domain name vb.netget domain name vb.netVB.NET

Click to see more ...

  217     50

how to get client ip address using vb.net ?how to get client ip address using vb.net ?VB.NET

Click to see more ...

  274     47

How to get client machine name or computer name with vb.net?How to get client machine name or computer name with vb.net?VB.NET

Click to see more ...

  157     45

get client latitude and longitude vb.netget client latitude and longitude vb.netVB.NET

Click to see more ...

  143     36

detect mobile vb.netdetect mobile vb.netVB.NET

Click to see more ...

  114     23

get machine name vb.netget machine name vb.netVB.NET

Click to see more ...

  109     22

detect browser vb.netdetect browser vb.netVB.NET

Click to see more ...

  60     16