Problem sending Joomla system e-mails with Phpmailer

Did you find a bug in Joomla! 3.x but aren't sure? This forum is the place to help figure out if the problem is a bug and how to report it. If you are an experienced Joomla! user and are certain that you have found a bug please use the Bug Tracker to submit your issue.
This forum is for discussion about bugs and to get help with reporting them to the Bug Tracker: https://issues.joomla.org

Moderator: ooffick

Forum rules
Please use the official Bug Tracker to report a bug: https://issues.joomla.org
Locked
Andy_Joomlandy
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Sat Apr 07, 2012 5:59 am

Problem sending Joomla system e-mails with Phpmailer

Post by Andy_Joomlandy » Wed Oct 29, 2014 10:08 am

My web hosting provider allows only PHP mail to send system e-mails.
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);
    }
So 'safe_mode' is not set, but UseSendmailOptions results to true. Where does this get set to true?
Edit: its set in the same file just like this:

Code: Select all

 public $UseSendmailOptions	= true;
Why?

Locked

Return to “Joomla! 3.x Bug Reporting”