PHPMailer\PHPMailer\PHPMailer::addAnAddress
Add an address to one of the recipient arrays or to the ReplyTo array.
Addresses that have been added already return false, but do not throw exceptions.
Signature
protected function addAnAddress(string
$kind,
string
$address,
[string
$name = ''] )
Parameters
$kind
— string- One of 'to', 'cc', 'bcc', or 'ReplyTo'
$address
— string- The email address to send, resp. to reply to
$name
— string
Returns
- bool
- true on success, false if address already used or invalid in some way