View Single Post
  #7 (permalink)  
Old April 17th, 2010, 08:08 AM
jack_hilary jack_hilary is offline
Friend of Wrox
Points: 752, Level: 10
Points: 752, Level: 10 Points: 752, Level: 10 Points: 752, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2009
Posts: 165
Thanks: 5
Thanked 6 Times in 6 Posts
Arrow

Hi there,
for .Net 3.5 try this one

Code:
Dim mySmtpClient As New SmtpClient()
            Try
                mySmtpClient.EnableSsl = True
                mySmtpClient.Send(myMessage)
            Catch ex As Exception
                lblMessage.Text = "An Error Occurred, Please Try Again."
            End Try
The above code is in VB.NET
Hope this helps you.

Cheers,

Jack
Reply With Quote