Mail notification not sent after article creation.
joomla 3.6.2, PHP7
Looks like an unexpected "return" is the culprit.
In /libraries/joomla/mail/mail.php, around line 400
public function addCc($cc, $name = '')
{
// If the carbon copy recipient is an array, add each recipient... otherwise just add the one
if (isset($cc))
{
return $this->add($cc, $name, 'addCC');
}
return $this;
}
After removing "return" from :
return $this->add($cc, $name, 'addCC');
It should work OK.
Closing than Thanks Michael
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-09-26 19:02:23 |
Closed_By | ⇒ | zero-24 |
Tks for the explanation.
I was not too sure about this, as I said, a "maybe".
Nope. It's fine. The add method returns $this on success and a Boolean
false on failure. So the fact something isn't sending means an address
wasn't added correctly and an error state was set. You'll need to debug
deeper to see what data is being given to the method and fix the data
source, not change the API.
This can be closed as not a core bug.
On Monday, September 26, 2016, ghazal notifications@github.com wrote: