I am trying to email the results of a form to myself, for now. I keep getting "The specified string is not in the form required for an e-mail address"
The address is hard coded in and is correct:
Dim myMessage As MailMessage = New MailMessage()
myMessage.Subject = "New Benefit Time Request"
myMessage.Body = mailBody
myMessage.From = New MailAddress("firstname.lastname@example.org")
myMessage.IsBodyHtml = True
When I view the mailbody it has all of the information that I want in it.
the odd thing is I copied and pasted this code from another project that I have done. It works fine.
Any help will be appreciated