|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
everywhere that I look for help is a dead end. the server that i have this site on is an aapche server running "chiliasp-3.5.2L-C3". i cannot get the form to mail the data entered. does ANYONE know how to do this?
All responses that I have received elsewhere are all code samples for servers running windows/IIS which is no help to me. SOMEBODY PLEASE?!?!?! |
|
#2
|
|||
|
|||
|
what code are you using?
__________________
Programmer's Corner |
|
#3
|
|||
|
|||
|
the last that i tried is obviosly wrong but you can get the jist of what i am trying to accomplish. the verification code runs correctly but once i hit the first "Dim" there is an error.
<% if len(Trim(request.form("txtFirstName2"))) = 0 then Response.Write("<b>First Name</b> is required.<br>Please click your browser's Back button, enter your First Name and then click Submit.") elseif len(Trim(request.form("txtLastName2"))) = 0 then Response.Write("<b>Last Name</b> is required.<br>Please click your browser's Back button, enter your Last Name and then click Submit.") elseif len(Trim(request.form("txtEmailAddress2"))) = 0 then Response.Write("<b>Email Address</b> is required.<br>Please click your browser's Back button, enter your Email Address and then click Submit.") elseif len(Trim(request.form("txtPhoneNumber2"))) = 0 then Response.Write("<b>Phone Number</b> is required.<br>Please click your browser's Back button, enter your Phone Number and then click Submit.") elseif len(Trim(request.form("txtFaxNumber2"))) = 0 then Response.Write("<b>Fax Number</b> is required.<br>Please click your browser's Back button, enter your Fax Number and then click Submit.") else if err.number=0 then Dim objMail Dim myBody Dim strFirstName Dim strLastName Dim strStreet Dim strCity Dim strState Dim strZip Dim strEmail Dim strPhone Dim strFax Dim strRequest strFirstName = Trim(Request.Form("txtFirstName2")) strLastName = Trim(Request.Form("txtLastName2")) strStreet = Trim(Request.Form("txtStreetAddress12")) strCity = Trim(Request.Form("txtCity2")) strState = Trim(Request.Form("txtState2")) strZip = Trim(Request.Form("txtZipCode2")) strEmail = Trim(Request.Form("txtEmailAddress2")) strPhone = Trim(Request.Form("txtPhoneNumber2")) strFax = Trim(Request.Form("txtFaxNumber2")) strRequest = Trim(Request.Form("txtarea")) myBody = "First Name: " & _ strFirstName & "<br>" myBody = myBody & "Last Name: " & _ strLastName & "<br>" myBody = myBody & "Street Address: " & _ strStreet & "<br>" myBody = myBody & "City: " & _ strCity & "<br>" myBody = myBody & "State: " & _ strState & "<br>" myBody = myBody & "Zip: " & _ strZip & "<br>" myBody = myBody & "Email: " & _ strEmail & "<br>" myBody = myBody & "Phone: " & _ strPhone & "<br>" myBody = myBody & "Fax: " & _ strFax & "<br>" myBody = myBody & "Request: " & _ strRequest & "<br>" Set objMail = Server.CreateObject ("CDONTS.NewMail") objMail.From = request.form("txtEmailAddress2") objMail.To = "mattyfed@aol.com" objMail.Subject = "Form Entry" objMail.Body = myBody objMail.Send Set objMail = nothing Response.Redirect("IRAction.asp") %> |
|
#4
|
|||
|
|||
|
there is a little html code above that to set up the page for if there is any required info left off of the form
the form is at www.grandplanconsulting.com/contact.html |
|
#5
|
|||
|
|||
|
CDONTS is a windows-specific email object, I believe. Chili offered ChiliMail for linux boxes, you can check the SunOne (previously Chili) website for more info.
|
|
#6
|
|||
|
|||
|
i cannot find anything on that site, any other ideas?
this is actually the line of code giving me the most headaches... Set objMail = Server.CreateObject ("CDONTS.NewMail") does anyone know the syntax for this line on a unix server? |
|
#7
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > chiliasp-3.5.2L-C3 --FORM HELP PLEASE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|