I am new to the use of the System.Net.Mail Namespace & the smtpClient class and it was a chore to get it to run without throwing an error. Which leads me to a whole bunch of questions about configuration which I'll leave to the end. But to my current problem.
I have created an Admin function to retrieve a users password & have it sent to him/her by email. The process of creating the mail message runs without throwing an error but no email is actually sent. The Admin will click on a link related to the user & code
behind will do a bunch of stuff to retrieve the password & then create the mail message as follows:
Try
Dim mMailMessage As MailMessage = New MailMessage
mMailMessage.To.Add(New MailAddress("user@hisdomain.com"))
mMailMessage.From = New MailAddress("admin@mydomain.org")
mMailMessage.Subject = "Your Password"
mMailMe ...
Go to the complete details ...