Please disregard the 'View article...' shown at the bottom of many posts as this is the result of restoring old forum posts from a backup.

Sending Mail Always Fails/Crashes in v2.4.2 in certain scenarios (fixed in patch #2)

edited January 2018 in General Support
If you are running Exponent CMS v2.4.2 under PHP v7.0.0 or later AND on a Linux based server the mail system will always crash when sending mail.
  • The fix for this will be in patch #1 out soon, but you could edit /external/EmailValidator-2.1.1/EmailValidator.php and replace line # 97 which now looks like
$path = __DIR__.'/'.str_replace('_', '/', $class).'.php';

With

$file = str_replace('\\', DIRECTORY_SEPARATOR, $class);
$path = __DIR__.'/'.str_replace('_', '/', $file).'.php';
FURTHERMORE, if you are running Exponent CMS v2.4.2 under PHP v7.0.0 or later AND using the 'Use simplified php mail() function instead of SMTP?' setting on any Server OS, the mail system will always crash when sending mail.
  • The quick fix is to change to use an SMTP server with appropriate settings

Sign In or Register to comment.