mirror of
https://github.com/processwire/processwire.git
synced 2025-08-16 03:34:33 +02:00
Fix issue processwire/processwire-issues#1042
This commit is contained in:
@@ -1196,7 +1196,7 @@ abstract class Wire implements WireTranslatable, WireFuelable, WireTrackable {
|
|||||||
/**
|
/**
|
||||||
* Record a Notice, internal use (contains the code for message, warning and error methods)
|
* Record a Notice, internal use (contains the code for message, warning and error methods)
|
||||||
*
|
*
|
||||||
* @param string $text|array|Wire Title of notice
|
* @param string|array|Wire $text Title of notice
|
||||||
* @param int $flags Flags bitmask
|
* @param int $flags Flags bitmask
|
||||||
* @param string $name Name of container
|
* @param string $name Name of container
|
||||||
* @param string $class Name of Notice class
|
* @param string $class Name of Notice class
|
||||||
|
@@ -610,7 +610,7 @@ class WireMail extends WireData implements WireMailInterface {
|
|||||||
|
|
||||||
foreach($this->to as $to) {
|
foreach($this->to as $to) {
|
||||||
$toName = isset($this->mail['toName'][$to]) ? $this->mail['toName'][$to] : '';
|
$toName = isset($this->mail['toName'][$to]) ? $this->mail['toName'][$to] : '';
|
||||||
if($toName) $to = $this->bundleEmailAndName($to, $toName); // bundle to "User Name <user@example.com"
|
if($toName) $to = $this->bundleEmailAndName($to, $toName); // bundle to "User Name <user@example.com>"
|
||||||
if($param) {
|
if($param) {
|
||||||
if(@mail($to, $subject, $body, $header, $param)) $numSent++;
|
if(@mail($to, $subject, $body, $header, $param)) $numSent++;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user