close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Simple Contact Form will not send. Please Help!

Thread began 6/16/2013 10:25 pm by Mysite07430650 | Last modified 6/17/2013 6:00 pm by Jason Byrnes | 456 views | 7 replies |

Mysite07430650

Simple Contact Form will not send. Please Help!

Hi Jason,

I manually created a simple contact form instead of using the Form Builder wizard. Each form field element has server validation, show if server behaviour and spry validation applied to it. I have my form action set to the same page with method post and used Universal Email to send the form; however, it will not send.

I have tried several permutations of moving the codes about and finally settled at leaving the Universal Email after the server behaviour codes for each form element. I don't know why it is not sending. Please Help!

Thanks.

Attached Files
get-in-touch.zip
Sign in to reply to this post

Jason ByrnesWebAssist

Are you redirected to the Index.php page or does the page just refresh? if the page just refreshes, the problem is the validation

one issue i see is that you have 4 instances of the Server Validation server behavior.

there should be only one instance of Server Validation. you can add multiple validations to the one server validation instance.

If the page redirects to the index page, the problem is the settings used for Universal Email.

Double check the From Address, make use it is a valid email address for your domain.

also, double check the Email Server Settings, depending on the host, you may need to enter an SMTP Server Address, or you may need to set the option in the from Settings to include the from address as an Extra Parameter.

Sign in to reply to this post

Mysite07430650

Jason, I have reduced the instances of Server Validation Behaviour to just one and included multiple server validation instances in that one as you suggested. I have removed the redirect to index.php. The Universal Email is configured to use 'real' email address in the From field and To Field.

I am using SSL SMTP with authentication and have the correct credentials for Hostgator Server (which incidentally works perfectly with the double opt-in registration -Security Assist Wizard created pages) but the email will not send.

Please see attached revised php file.

What I am doing wrong?

Attached Files
get-in-touch.zip
Sign in to reply to this post

Jason ByrnesWebAssist

to troubleshoot, add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errrors','on');
?>



in the server validations behavior, set the failed redirect to the same page, but add a URL variable:

$WAFV_Redirect = "get-in-touch.php?failed=true";

this way if ht eURL variable is present we know if the issue is validation or email settings.

aslo, add the following code at the end of the page just be fore the closing </html> tag:

<?php @session_start(); var_dump($_SESSION); ?>

include a link to your page after making the changes.

Sign in to reply to this post

Mysite07430650

Originally Said By: Jason Byrnes
  to troubleshoot, add the following code at line 1:

php:
<?php

error_reporting
(E_ALL);
ini_set('display_errrors','on');
?>


in the server validations behavior, set the failed redirect to the same page, but add a URL variable:

$WAFV_Redirect = "get-in-touch.php?failed=true";

this way if ht eURL variable is present we know if the issue is validation or email settings.

aslo, add the following code at the end of the page just be fore the closing </html> tag:

<?php @session_start(); var_dump($_SESSION); ?>

include a link to your page after making the changes.  
Sign in to reply to this post

Jason ByrnesWebAssist

your page is not accepting the captcha code, this suggests there is a problem on the server saving sessions.

use the attached sessionTest.php page to ensure that the server can save sessions. if the session test fails, you will need to contact the host to have them correct the problem.

Attached Files
sessionTest.php.zip
Sign in to reply to this post

Mysite07430650

Jason, I uploaded the sessionTest.php to my root directory and tested it it appears to be okay. I also had the technical staff at Hostgator run a test and they too said it was fine. I do not know what to do?

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...