Aloha, vaevictus - -
This is an extreme OLD thread, but apparently confusion about sending email abounds. I know that once I got it properly working, I tend to "clone" all the new ones from the working model.
Here is a general framework that I know works:
1 Dim objMail As New MailMessage
2 objMail.IsBodyHtml = True
3
4 With objMail
5 .From = New MailAddress("from_where@your_domain.com")
6 .To.Add(pEmail)
7 .Subject = "Your SUBJECT
8 .Bcc.Add("mybcc@your_domain.com")
9
10 .Body = “body of email message”
11
12 End With
13
14 Dim client As SmtpClient = New SmtpClient("relay-hosting.secureserver.net")
15 client.UseDefaultCredentials = True
16
17 Try
18 client.Send(objMail)
19 Catch Ex As Exception
20 ‘ handle your error HERE
21 End Try
22
Of course, the success of the Send is going to count on the way that your local hosting service is set up. The "relay-hosting.secureserver.net" is specific to GoDaddy.
I hope this helps! :) KevInKauai