Hi. I'm pretty new to the ASP part of the web developement world and need some help.
I built an ASP form that sends and works pretty musch exactly liek I want it to. The problem is that when the results of the form are emailed, you recieve a blank email. I should be receiving an email with the senders name, email, and comments. My hosting company thinks that there is something missing from that code that would make that information send or that the page that the code is .htm when it should be .asp. Could someone help me figure out whats wrong with my code so the information thats trying to be sent is actually getting sent?
Here is the code for my form (I have this in both .htm and .asp):
DIM strVName, strVEMail, strVComments
strVName = request.form("VisitorName")
strVEMail = request.form("VisitorEMail")
strVComments = request.form("VisitorComments")
DIM Mail, strMsgHeader
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "mail.example.com"
Mail.Username = "firstname.lastname@example.org"
Mail.Password = "xxxxx"
Mail.From = strVEMail
Mail.FromName = strVName
Mail.Subject = "Email From Your Website"
Mail.Body = strVComments
On Error Resume Next
Set Mail = Nothing
IF Err <> 0 THEN
Response.Write "There has been an error and your message could not be sent at this time using this form. Please contact us directly at (xxx)xxx-xxxx. " & Err.Description
' Set the mail server configuration
objConfig.Fields.Item(sendUrl)=2 ' cdoSendUsingPort
' Create and send the mail
' Use the config object created above