2008-10-19, 04:33 PM
Yep, error reported as follows using the original (and renamed) "simplephp.php file:
Parse error: syntax error, unexpected ')' in /www/itrello.com/n/e/e/[b](<EDIT: site name removed due to it no longer being hosted on itrello.com>)/htdocs/Forum/inc/mailhandlers/php.php on line 58
[/b]
I'll try with the fixed file...brb
-------------------------
Back... now, after editing the file to fix the above error, and I get this:
Please make sure IN_MYBB is defined."); } /** * PHP mail handler class. */ class PhpMail extends MailHandler { /** * Additional parameters to pass to PHPs mail() function. * * @var string */ var $additional_parameters = ''; /** * Sends the email. * * @return true/false whether or not the email got sent or not. */ function send() { global $lang, $mybb; // For some reason sendmail/qmail doesn't like rn $this->sendmail = @ini_get('sendmail_path'); if($this->sendmail) { $this->headers = str_replace("rn", "n", $this->headers); $this->message = str_replace("rn", "n", $this->message); $this->delimiter = "n"; } // Some mail providers ignore email's with incorrect return-to path's so try and fix that here $this->sendmail_from = @ini_get('sendmail_from'); if($this->sendmail_from != $mybb->settings['adminemail']) { @ini_set("sendmail_from", $mybb->settings['adminemail']); } // If safe mode is on, don't send the additional parameters as we're not allowed to if(ini_get('safe_mode') == 1 || strtolower(ini_get('safe_mode')) == 'on') { $sent = @mail($this->to, $this->subject, $this->message); } else { $sent = @mail($this->to, $this->subject, $this->message); } $function_used = 'mail()'; if(!$sent) { $this->fatal_error("MyBB was unable to send the email using the PHP {$function_used} function."); return false; } return true; } } ?>
Fatal error: Class 'PhpMail' not found in /www/itrello.com/n/e/e/[b](<EDIT: site name removed due to it no longer being hosted on itrello.com>)/htdocs/Forum/inc/functions.php on line 431[/b]
Pretty much greek to me, though it seems to be 'echoing' the code, but maybe there is something in there that will help narrow down the problem.
Please keep in mind that there is the possibility that the PHP server might not have fully recovered from the "crash" yet or I might have 'broke' the code when editing it. I know the recent MySql server crash my host had probably doesn't help the situation either. Arrgghh.
Parse error: syntax error, unexpected ')' in /www/itrello.com/n/e/e/[b](<EDIT: site name removed due to it no longer being hosted on itrello.com>)/htdocs/Forum/inc/mailhandlers/php.php on line 58
[/b]
I'll try with the fixed file...brb
-------------------------
Back... now, after editing the file to fix the above error, and I get this:
Please make sure IN_MYBB is defined."); } /** * PHP mail handler class. */ class PhpMail extends MailHandler { /** * Additional parameters to pass to PHPs mail() function. * * @var string */ var $additional_parameters = ''; /** * Sends the email. * * @return true/false whether or not the email got sent or not. */ function send() { global $lang, $mybb; // For some reason sendmail/qmail doesn't like rn $this->sendmail = @ini_get('sendmail_path'); if($this->sendmail) { $this->headers = str_replace("rn", "n", $this->headers); $this->message = str_replace("rn", "n", $this->message); $this->delimiter = "n"; } // Some mail providers ignore email's with incorrect return-to path's so try and fix that here $this->sendmail_from = @ini_get('sendmail_from'); if($this->sendmail_from != $mybb->settings['adminemail']) { @ini_set("sendmail_from", $mybb->settings['adminemail']); } // If safe mode is on, don't send the additional parameters as we're not allowed to if(ini_get('safe_mode') == 1 || strtolower(ini_get('safe_mode')) == 'on') { $sent = @mail($this->to, $this->subject, $this->message); } else { $sent = @mail($this->to, $this->subject, $this->message); } $function_used = 'mail()'; if(!$sent) { $this->fatal_error("MyBB was unable to send the email using the PHP {$function_used} function."); return false; } return true; } } ?>
Fatal error: Class 'PhpMail' not found in /www/itrello.com/n/e/e/[b](<EDIT: site name removed due to it no longer being hosted on itrello.com>)/htdocs/Forum/inc/functions.php on line 431[/b]
Pretty much greek to me, though it seems to be 'echoing' the code, but maybe there is something in there that will help narrow down the problem.
Please keep in mind that there is the possibility that the PHP server might not have fully recovered from the "crash" yet or I might have 'broke' the code when editing it. I know the recent MySql server crash my host had probably doesn't help the situation either. Arrgghh.