Error 500 on submit mail form

tempus 01 Jun, 2013
Hi!

Thank you for great extension and please help to configure.
Simple e-mail form:
1. header
2. e-mail field
3. capcha
4. submit

Submitted e-mail includes into letter and sends to specified adress.

And now I don't know what (and please help)
On submit i have this -

Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
malformed header from script. Bad header=More than one "from" person: index.php

If you think this is a server error, please contact the webmaster.

Error 500


[attachment=0]CFV4_FormsBackup_ON_test.law.univ.kiev.ua_01_Jun_2013_09-23-24.rar[/attachment]
GreyHead 01 Jun, 2013
Hi tempus,

Which version of Joomla! and ChronoForms are you using?
You can find the ChronoForms version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6/1.7/2.5.

Bob
tempus 02 Jun, 2013
Joomla! 2.5.10
ChronoForms:
component - 4.0 25.April.2013
module and plugin - V4 RC3.0 26 Dec 2011
GreyHead 03 Jun, 2013
Hi tempus,

That should be OK. Please temporarily set site Error Reporting to Maximum in the site Global Configuration and see if you get a more helpful error message.

Bob
tempus 06 Jul, 2013
I discovered that problem caused by inserted e-mail in configs of hosting...
And nobody will delete it (support says).

I tryed to use sendmail, but with the same result.
GreyHead 07 Jul, 2013
Hi tempus,

So what does your web host suggest are the correct settings to use in Joomla!?

Bob
tempus 07 Jul, 2013
I don't know what they are thinking about. They prevent spam.
This is the site of department in university and IT-department hosts it.

Admin advised me to use fields like Reply-To but I don't use to do it - all the scripts works good on other hosting.
I understand that this the problem of hosting, not a chronoforms.
GreyHead 07 Jul, 2013
Hi tempus,

I agree that Reply To is the right field to use if you want to have variable addresses.

Bob
tempus 07 Jul, 2013
"from" is constant admin box.🙂
E-mail requests from this adress adds subscribers to list.
All forwarded e-mails from admin box to list box make mailing thru saved list of subscribers.

so I cant use variable "from", am I right?
tempus 09 Jul, 2013
Done!!!

I discovered that I made mistakes during the upgrade of joomla.

Now it works good.
GreyHead 10 Jul, 2013
Hi tempus,

Using a variable From Email often causes problems as emails can get marked as spam because the sending domain doesn't match the domain of the email.

Bob
oneira 05 Aug, 2013
Ok, i think i have a similar problem. I too have a form with an Email field, and when i try to process it, i receive an error. I tried escaping the @ character using


$look_for = "@";
		$change_to = "\@";
		$changed_text = str_replace($look_for, $change_to, $formArray->data['email']);
		
		$this->email    = $changed_text;


(i'm using it inside a class, so the $this pointer is ok).

I'm using the JDBO to build the insert clause like this:


$columns = array('name_sponsor', 'phone_sponsor', 'email_sponsor', 'address_sponsor', 'pCode_sponsor', 'id_province', 'id_city');

   		$values = array($this->sp_name, $this->phone, $this->email, $this->address, $this->postalC, $this->province, $this->city);


However when i submit it i receive the following


500
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\@gmail.com,6615 ch.,H1l2h5,5,462)' at line 3 


I tried changing the Error reporting to Maximum to no effect. I also tried both with and without the escaped '@' character. Thanks
GreyHead 05 Aug, 2013
Hi Oniera,

I'm not terribly impressed by the Joomla! 3 JDBO class; it seems to me that there is quite a lot that it does poorly or not at all :-(

The problem here may be that the values aren't being quoted. Please try:
$db =& JFactory::DBO();
$this->email =& $db->quote($this->email);


Bob
oneira 05 Aug, 2013
Thanks, got it running. Very weird indeed, but very simple.
This topic is locked and no more replies can be posted.