Bug #9185
closedMailreport - Cant sending repports if multiple emails addresses in smtpnotifyemailaddress
0%
Description
In the field smtpnotifyemailaddress on the system_advanced_notifications.php we can put pultiple mail addresses with a coma separator.
The system handle them correctly.
But the mailreport packages does not, because in mail_reports.inc it only consider the field smtpnotifyemailaddress contains only one address.
Can I suggest a correction in the source code by pushing request on github ?
Here is the modification i suggest :
$addresses = explode(",", $config['notifications']['smtp']['notifyemailaddress']);
foreach ($addresses as $address){
$recipient=explode("@", $address);
$recipient=str_replace(array("_",".")," ",$recipient0);
$mail->AddAddress($address, ucwords(strtolower($recipient));
}
Updated by Joshua Sign about 7 years ago
i forget a ) in the code, the good one is :
$addresses = explode(",", $config['notifications']['smtp']['notifyemailaddress']);
foreach ($addresses as $address){
$recipient=explode("@", $address);
$recipient=str_replace(array("_",".")," ",$recipient0);
$mail->AddAddress($address, ucwords(strtolower($recipient)));
}
Updated by Joshua Sign about 7 years ago
Pull request created : https://github.com/pfsense/FreeBSD-ports/pull/600
Updated by Jim Pingle over 6 years ago
- Status changed from New to Resolved
PR was merged a long time ago.