You are here

public function PHPMailer::AddAddress in SMTP Authentication Support 7

Same name and namespace in other branches
  1. 5 smtp.module \PHPMailer::AddAddress()
  2. 7.2 smtp.phpmailer.inc \PHPMailer::AddAddress()

Adds a "To" address.

Parameters

string $address:

string $name:

Return value

boolean TRUE on success, FALSE if address already used

File

./smtp.phpmailer.inc, line 419
The mail handler class in smtp module, based on code of the phpmailer library, customized and relicensed to GPLv2.

Class

PHPMailer
PHPMailer - PHP email transport class NOTE: Requires PHP version 5 or later @package PHPMailer @author Andy Prevost @author Marcus Bointon @copyright 2004 - 2009 Andy Prevost

Code

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