PHPMailer\PHPMailer

PHPMailer::addAddress()publicWP 1.0

Add a "To" address.

{} It's a method of the class: PHPMailer{}

No Hooks.

Return

true|false. true on success, false if address already used or invalid in some way

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->addAddress( $address, $name );
$address(string) (required)
The email address to send to
$name(string)
-
Default: ''

Code of PHPMailer::addAddress() WP 6.0

public function addAddress($address, $name = '')
{
    return $this->addOrEnqueueAnAddress('to', $address, $name);
}