public function PHPMailer::addAddress
Search API
5.x PHPMailer.php | public PHPMailer::addAddress($address, $name = '') |
Add a "To" address.
Parameters
string $address The email address to send to:
string $name:
Return value
bool true on success, false if address already used or invalid in some way
Throws
File
- inc/
PHPMailer/ src/ PHPMailer.php, line 947
Class
- PHPMailer
- PHPMailer - PHP email creation and transport class.
Namespace
PHPMailer\PHPMailerCode
public function addAddress($address, $name = '')
{
return $this->addOrEnqueueAnAddress('to', $address, $name);
}