Search

Hi all,

I edited this discussion to more reliable text. I have found that PHP Safe Mode on virtual host I am using is blocking email forms.

Everything in my Symphony installation went OK in safe mode. But forms did not worked for sending email.

So by the errors Symphony reported me I have realized that only solution is to change mailing function in file /symphony/lib/toolkit/class.general.php

Main change is in 5th parameter in PHP mail function. This is also addressed in official documentation on php.net here: php mail function So 5th parameter is optional and solely used and for working forms in safe mode is better to change that function. It is on line 292 of class.general.php. Suggested code could be:

return mail($to_email, $subject, @wordwrap($message, 70), @implode(self::CRLF, $headers) . self::CRLF);

Actual code is:

return mail($to_email, $subject, @wordwrap($message, 70), @implode(self::CRLF, $headers) . self::CRLF, "-f{$from_email}");

So what do You think about it ?????

I could recommend to change this to next versions of Symphony.

By the way is that 5th parameter really of some use in Symphony ????

I really appreciate any reply.

I am from Czech Republic, so please sorry for my English…..

Thanks for the detailed account of the situation. For the Symphony team, support for safe_mode is generally not on our priority list. However, I think this addition is beneficial outside of safe_mode support.

I have added this as an issue to look at on our official issue tracker: https://github.com/symphonycms/symphony-2/issues/1410

The issue was raised, feedback received and closed. Please see reasoning on the issue tracker: https://github.com/symphonycms/symphony-2/issues/1410#issuecomment-7753716

Hi, thanks for answer. I have checked and read all. I understand and hosting where I have all of my projects is: hosting.blueboard.cz

Which has settings here: php info blueboard

So safemode is there on...

So they haven't seen the big warning sign in the PHP manual:

http://php.net/manual/features.safe-mode.php

It clearly states that you shouldn't use Safe Mode anymore.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details