PHPMailer\PHPMailer
PHPMailer::addrAppend()
Create recipient headers.
Method of the class: PHPMailer{}
No Hooks.
Return
String
.
Usage
$PHPMailer = new PHPMailer(); $PHPMailer->addrAppend( $type, $addr );
- $type(string) (required)
- -
- $addr(array) (required)
- An array of recipients, where each recipient is a 2-element indexed array with element 0 containing an address and element 1 containing a name, like: [['[email protected]', 'Joe User'], ['[email protected]', 'Zoe User']]
PHPMailer::addrAppend() PHPMailer::addrAppend code WP 6.4.1
public function addrAppend($type, $addr) { $addresses = []; foreach ($addr as $address) { $addresses[] = $this->addrFormat($address); } return $type . ': ' . implode(', ', $addresses) . static::$LE; }