I
just created a Web Form and added a few controls (txtName, txtEmail,
txtPhoneNumber, txtBestTime, and txtHelp) to the form. I?m trying to set this up so that a user can
enter a name and email address (I should be all set with the valiationfor these controls) and
then enter comments into a comment box (named txtHelp) and then click a button
to send me an email. Below is the code
that I?m working with. When I tried to
test the logic, I received a message that read as follows:
Try
SMTPServer.Send(MyMailMessage)
MessageBox.Show = ("Email Sent")
Catch ex As SmtpException
MessageBox.Show(ex.Message)
Below
is the code that I tried:
Imports
System.Net.Mail
Partial Class ContactUs
Inherits
System.Web.UI.Page
Protected Sub Button1_Click(ByVal
sender As Object,
ByV ...
Go to the complete details ...