I have an e-mail form in a web project and I would like to display a message to the user as to whether the transmitted message was successful. I picked up the SmtpClient_OnCompleted (below) from a Web site but now I don't know what to do with it. There is no error--just that the program skips over the AddHandler instruction. If someone can please advise me how to integrate SmtpClient_OnCompleted with SendMail, I'd appreciate it. Private Sub SendMail()
Dim mailClient As New SmtpClient("localhost")
mailClient.Send(Profile.Email, GetEAddress(Session("FName"), Session("LName")), txtSubject.Text.Trim, txtMsg.Text.Trim)
AddHandler mailClient.SendCompleted, AddressOf SmtpClient_OnCompleted
...
Go to the complete details ...