Welcome aboard! We are happy you are here and wish you good net-raft!
'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
The most helpful VB.NET solutions
get computer name vb.net VB.NET
Click to see more ...
  1.3K
    76
get domain name vb.netVB.NET
Click to see more ...
  1.1K
    71
how to get client ip address using vb.net ?VB.NET
Click to see more ...
  903
    63
How to get client machine name or computer name with vb.net?VB.NET
Click to see more ...
  1.2K
    57
array vb.netVB.NET
Click to see more ...
  635
    56
get client country vb.netVB.NET
Click to see more ...
  556
    52
get client latitude and longitude vb.netVB.NET
Click to see more ...
  445
    36
detect mobile vb.netVB.NET
Click to see more ...
  385
    23
get machine name vb.netVB.NET
Click to see more ...
  361
    22
detect browser vb.netVB.NET
Click to see more ...
  294
    16