ChronoEngine Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Both table and emails not working on contact form (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Both table and emails not working on contact form
#8280
simonshah (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Both table and emails not working on contact form 1 Month, 3 Weeks ago Karma: 0  
H I there

A couple of problems with ChronoEngine on a Joomla 1.5.2 install on contact form from my site at simonshah.co.uk

I have created the form, customized the look, used validation and created the page redirect but have problems with email not working and data not populating the table.

Looking through the FAQ and forums, I did the following:

EMAIL
Tested email works fine from the site by placing a mailto HTML tag to test and that worked ok (now removed the mailto tag as I only used it for testing)

Tried to complete a form fill with Debug On and Verification Off but couldn’t see any debug messages for the email.

Check my own spam box but nothing came in there

FORM
Used phpmyadmin to delete the existing table jos_chronoforms1 and I deleted the code from the autogenerated tab and recreated the table within Chr0onoforms
Retested the form but still no data population into the table at the back end

Settings on man page of chronoengine are as follows:

Form name: contact_form
Email results? Yes
Email Address: I have put a correct email address here
Email Subject: Contact Form Submission
Form method: Post
Record and Send Users IP: Yes
From Email: I have out a correct email address here
From Name: Simon Shah
IN which format to send the results: Field titles
Debug: on
MYSQL Statement; ENGINE
Enable Mambots: No






Regards
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/12 11:10 By simonshah. Reason: cant attach image
  The administrator has disabled public write access.
#8281
GreyHead (Admin)
Admin
Posts: 2809
graph
User Offline Click here to see the profile of this user
Re:Both table and emails not working on contact form 1 Month, 3 Weeks ago Karma: 59  
Hi simonshah,

Please remove the Redirect URL temporarily to see the DeBug info.

Thanks

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8345
simonshah (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Re:Both table and emails not working on contact form 1 Month, 3 Weeks ago Karma: 0  
Got the debug to work now by turning off the redirect and this is the message:

_POST: Array ( [firstname] => Simon [lastname] => Shah [email] => email address [comments] => hello world )
Case 2: Use template
E-mail: 'Yes' custom
Email sent
E-mail message
From: Simon Shah [email address]
To: email address
Subject: Contact Form Submission - Simon Web

Submitted by 89.243.228.75

Reading this information, it all looks correct to me, so unsure next steps..
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/26 02:18 By simonshah. Reason: removing my actual email address
  The administrator has disabled public write access.
#8367
GreyHead (Admin)
Admin
Posts: 2809
graph
User Offline Click here to see the profile of this user
Re:Both table and emails not working on contact form 1 Month, 3 Weeks ago Karma: 59  
Hi simonshah,

As you say that all looks fine. The 'Email sent' message says that Joomla sent the message off to whatever mailserver you have configured for your site - so the mail problem is somewhere after that. You have the same email in 'to' and 'from' so quite possibly it got dropped in a spam filter somewhere. Try using two different emails here.

It also looks as though there is no body to your email. Do you have anything in the 'Email template' box on the Form HTML tab?

I can't tell anything about the database save from this - what code is in the Autogenerated code tab for this form?

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
#8372
simonshah (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Re:Both table and emails not working on contact form 1 Month, 3 Weeks ago Karma: 0  
Hi Greyhead

Taking your suggests

EMAIL:

I reverted to 'Fields Titles' to format the send email as I didnt actually have a template made up, thinking that might be the problem.

I then used the form to send to my gmail account and received tis debug message:

PHPMAILER_EXECUTE/usr/sbin/sendmail
_POST: Array ( [firstname] => simon [lastname] => shah [email] => email address[comments] => test )
Case 1: Use table layout
E-mail: 'Yes' custom
Email sent
E-mail message
From: Simon Shah [email address]
To: email address
Subject: Contact Form Submission - Simon Web

firstname simon
lastname shah
email email address
comments test

But the email was not received at my gmail account either. I also checked the spam box too

Then I played around with Joomla mail settings, switching and testing between phpmail and sendmail but neither seemed to rectify the problem. Remember that I tested the mail functionality earlier using the mailto command and the email worked (using phpmail setting in Joomla)

The form is up at http://simonshah.co.uk/index.php/component/option,com_chronocontact/Itemid,49/


DATABASE TABLE:
Here is the code in the autogenerated tab:

<?php
$database =& JFactory::getDBO();
srand((double)microtime()*10000);
$inum = "I" . substr(base64_encode(md5(rand())), 0, 16);

$database->setQuery( "INSERT INTO #__chronoforms_1 VALUES (
'' , '".$inum."','". date('Y-m-d')." - ".date("H:i:s")."', '".$_SERVER['REMOTE_ADDR']."' , '".JRequest::getVar('firstname','', 'post', 'string', '' )."' , '".JRequest::getVar('lastname','', 'post', 'string', '' )."' , '".JRequest::getVar('email','', 'post', 'string', '' )."' , '".JRequest::getVar('comments','', 'post', 'string', '' )."');" );
if (!$database->query()) {
echo "<script> alert('".$database->getErrorMsg()."'); window.history.go(-1); </script>
";
}
?>


Many thanks for your advice

Simon
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/05/26 02:20 By simonshah. Reason: dont show my email
  The administrator has disabled public write access.
#8373
GreyHead (Admin)
Admin
Posts: 2809
graph
User Offline Click here to see the profile of this user
Re:Both table and emails not working on contact form 1 Month, 3 Weeks ago Karma: 59  
Hi Simon,

The "PHPMAILER_EXECUTE/usr/sbin/sendmail" message isn't from ChronoForms it's a site message about a problem with the PHP Mailer . . . It translates into "PHP could not execute /usr/sbin/sendmail"

The database code looks OK _ it may be that the mailer problem is interrupting the code before it gets to that stage.

Bob
 
Report to moderator   Logged Logged  
 
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials