Problem: Joomla reports it could not send e-mail.
Joomla version: 3.3.6
PHP: 5.3.29
Backend set to "Send mail" Yes, mailer: PHP Mail.
Solution was to change code in phpmailer.php library like described in this thread - remove $params from the mail sending function http://forum.joomla.org/viewtopic.php?f=579&t=752981.
What is the real solution for this problem? I assume it is not an error in the library but some misconfiguration on my web hosting.
This is the code that leads to the mail-function call with $params in the else-statement:
Code: Select all
if ( ini_get('safe_mode') || !($this->UseSendmailOptions) ) {
$rt = @mail($to, $this->EncodeHeader($this->SecureHeader($subject)), $body, $header);
} else {
$rt = @mail($to, $this->EncodeHeader($this->SecureHeader($subject)), $body, $header, $params);
}
Edit: its set in the same file just like this:
Code: Select all
public $UseSendmailOptions = true;