You are here

public function PHPMailer::ClearAddresses in SMTP Authentication Support 7

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

Clears all recipients assigned in the TO array. Returns void.

Return value

void

File

./smtp.phpmailer.inc, line 1852
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 ClearAddresses() {
  foreach ($this->to as $to) {
    unset($this->all_recipients[strtolower($to[0])]);
  }
  $this->to = array();
}