close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

uploaded fresh CSP contact php file

Thread began 7/29/2009 6:19 pm by jc88383884 | Last modified 8/04/2009 10:14 am by Jason Byrnes | 6804 views | 6 replies |

jc88383884

uploaded fresh CSP contact php file

Hi John: Followed your suggestions and uploaded fresh php file. CAPTCHA now visible but still not receiving emails. Configured $WAGLOBAL_Email_Server file = "" put in my SMTP server address and also tried leaving it blank. Only other change entered $WAGLOBAL_Email to = "" - inserted info@josecpais.com. I made all the files in the contact pack writable. What next? thanks JC Pais

Sign in to reply to this post

Jon GibsonBeta Tester

Email

Hello JC:

There can be a couple of things wrong with the email bit, at least that I've run into.

1. Put your email server information in the $WAGLOBAL_Email_Server
mail.yoursitename.com

2. I'm not sure if you have the most recent version or updates for the CSP, but look in your file directory (the files panel of Dreamweaver). Within the CSP folder, open the Universal Email folder. See that there are two Mail_for files - one for Linux and one for Windows. If you have these you should be fine. If you don't, you should open the mail_PHP file and look for $lineEnd = "\n\r" (should be between lines 90 and 120 within the function WAUE_SendMail). Remove the \r and everything should work.

3. The change to your Email_To looks fine too.

4. If none of this works then I would contact your host. My emails were not sent because of a hosting problem that was resolved. If this is the case I can give you suggestions about what to ask.

Let me know if that solves the problem.

Sign in to reply to this post

Jason ByrnesWebAssist

Hi JC,

In addition to Jon's excelent advice above, is the contactus.php page forwarding to the thankyou.php page?

If it is not forwarding to the thankyou.php, it will indicate that the code that send s the email is not being triggered. This can happen if the host disables the HTTP_REFERER variable.

If this is the case locate the following code:
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST))) {

and change it to:
if ($_SERVER["REQUEST_METHOD"] == "POST") {

Sign in to reply to this post

jc88383884

Csp

Thanks for the input, will try and let you know how it all turns out. JC

Sign in to reply to this post

jc88383884

webhost replies after examining code

Hi Guys: I made your recommended changes and implemented the suggestions below, but still no joy. Could you have a look-see and advise. Many thanks. JC

Hello JC:

I'm writing in regards to ticket #6219513, on your form email issues.

It appears that in your contactus.php page, there is no command set to call upon a script within the <form action=""> command. As a result, there is no file enabled to mail out the contact information entered.


However, we do keep a script stored on our server that is used for sending emails that you can apply to your contact forms, if you wish. formemail.bml is a shared script for sending form mails which is accessible for all users on our system, and you can modify your contact forms to use this script instead as it may be more reliable.

To modify this, you would need to update the form commands within your contact pages to include the following information in place of what is set already: <form method="post" action="http://www.powweb.com/scripts/formemail.bml">

As an example, in your contactus.php page, you can change:
<form action="" method="post" name="emailContact" id="emailContact" onsubmit="">
to
<form action="http://www.powweb.com/scripts/formemail.bml" method="post" name="emailContact" id="emailContact" onsubmit="">

You may have additional errors within the scripting that would need to be examined, but unfortunately we are not able to provide support for html/php scripting issues aside from recommending the own scripts we have set up for these purposes.

If you have any further questions regarding this issue, please feel free to reply to this ticket through your Support Console or via email/telephone. Thank you for contacting us.

Christopher C
Powweb Technical Support

Sign in to reply to this post

Jason ByrnesWebAssist

Hello JC,


The forms action should left blank. when left blank the form will post to itself.

The code for precessing the form and sending the email should be on the contactus.php page already.

If you leave the forms action blank, are you redirected to the thank you page?

If so, this indicates that the code for sending the email is being triggered. If not we will need to find another avenue to debug.

I am going to open a ticket for you so we can look into this further. I would like for you to reply to that ticket by logging into the support history page at:
supporthistory.php

Please include a copy of the contactus.php page and let me know whether you are redirected to the thank you page after submitting the form.

Sign in to reply to this post

Jason ByrnesWebAssist

We looked into this in a connect meeting. We added:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>

to the top of the page to show PHP errors and saw the following error:

Warning: session_start() [function.session-start]: open(/var/php_sessions/sess_b8e1188f2b2fdb856f7c22525d0a5ab0, O_RDWR) failed: No such file or directory (2) in /hermes/web05b/b962/pow.josecpais/htdocs/ContactForm_GMC/WA_ValidationToolkit/WAVT_ValidatedForm_PHP.php on line 3


This error indicates that the host has a problem with the session.save-path setting in the php.ini file. I recommended contacting the host to have them fix it.

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...