I've spent HOURS trying to get my form details to get send out to my inbox at work but I'm not able to. I can't send mail to my inbox regardless of what is in my form.
Can someone PLEASE PLEASE help me out here? The form is located at:
..and enclosed are the .aspx files and images (NOTE: rename the .doc file to .aspx - otherwise I couldn't upload it) document.
Your help is very very much appreciated. I don't know why but here is what I get out of this aspx page:
> I press the 'submit' button and no errors.
> I'm using Visual Web Dev Express and I don't see any squigly lines under my code
To find my code, here is a small snippet of the function I'm using after the user presses "Submit"
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim fromAddress As New Net.Mail.MailAddress("firstname.lastname@example.org", "FTP Support!")
Dim toAddress As New Net.Mail.MailAddress("paggarwala@executiveboard", "FTP Support!")
Dim formmail As New Net.Mail.MailMessage(fromAddress, toAddress)
.Subject = "<b> Testing new email</b>"
.Body = "Testing new email, sent at " & DateTime.Now.ToString()
.IsBodyHtml = True
Dim mailSender As New System.Net.Mail.SmtpClient()
mailSender.Host = "smtp.cebdata.com"
Console.WriteLine("Successfully sent email message" + vbCrLf)
Catch err As Exception
Console.WriteLine("EXCEPTION " + err.Message + vbCrLf)