contact form not submitting
Hey Ray
Have got a contact form that runs the validation fine but doesnt submit and redirect to itself for the success message.
Not sure what I have done wrong. File attached and link to page in PM
Cheers
Jamie
Hey Ray
Have got a contact form that runs the validation fine but doesnt submit and redirect to itself for the success message.
Not sure what I have done wrong. File attached and link to page in PM
Cheers
Jamie
Does the email get sent? I don't really see the problem, so I'd have to debug. I'd start by putting a session dump after line 207 and see if the session variable is set to the values you would expect and are keying off of.
no the email isnt sent.
I get array(0) { } on page load but when i go to submit the form i get this
array(8) { ["waue_contact_1_Status"]=> string(7) "Failure" ["waue_contact_1_Index"]=> int(1) ["waue_contact_1_From"]=> string(43) "xxxxxx " ["waue_contact_1_To"]=> string(18) "jamie@xxxxxx.co.uk" ["waue_contact_1_Subject"]=> string(15) "Website Enquiry" ["waue_contact_1_Body"]=> string(2384) " --WAMULTIBREAKWA Content-Type: text/plain Content-Transfer-Encoding: 8bit --WAMULTIBREAKWA Content-Type: text/html
Form Submitted: 28 Aug 2015
Name: zxczxc
Company: cxzczx
Tel: cxzczx
Email Address: cxzczxczx
textarea-name: cxzczx
--WAMULTIBREAKWA-- " ["waue_contact_1_Header"]=> string(378) "MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="WAMULTIBREAKWA" From: xxxxxx Reply-To: noreply@xxxxxx.co.uk Return-Path: noreply@xxxxxx.co.uk X-Sender: xxxxxx X-Priority: 1 Date: Fri, 28 Aug 2015 19:18:57 +0000 (GMT) Message-ID: <796547382.14709c93a006be9459946e2e08bb0186@xxxxxx.co.uk> " ["waue_contact_1_Log"]=> string(50) "Sending To: jamie@xxxxxx.co.uk... - Failure
" }
It looks like that isn't a valid from email address, causing the email to fail. You have your code set to show the sent message only when the email sends successfully.
got it thanks Ray
have a great weekend
Jamie
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.