Skip to content

Commit

Permalink
Added the methods to set/add/get Cc and Bcc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Apr 13, 2011
1 parent fae641e commit 7aa0d6c
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions lib/Cake/Network/CakeEmail.php
Expand Up @@ -254,6 +254,68 @@ public function getTo() {
return $this->_to;
}

/**
* Set Cc
*
* @param mixed $email String with email, Array with email as key, name as value or email as value (without name)
* @param string $name
* @return void
*/
public function setCc($email, $name = null) {
$this->_setEmail('_cc', $email, $name);
}

/**
* Add Cc
*
* @param mixed $email String with email, Array with email as key, name as value or email as value (without name)
* @param string $name
* @return void
*/
public function addCc($email, $name = null) {
$this->_addEmail('_cc', $email, $name);
}

/**
* Get Cc
*
* @return array
*/
public function getCc() {
return $this->_cc;
}

/**
* Set Bcc
*
* @param mixed $email String with email, Array with email as key, name as value or email as value (without name)
* @param string $name
* @return void
*/
public function setBcc($email, $name = null) {
$this->_setEmail('_bcc', $email, $name);
}

/**
* Add Bcc
*
* @param mixed $email String with email, Array with email as key, name as value or email as value (without name)
* @param string $name
* @return void
*/
public function addBcc($email, $name = null) {
$this->_addEmail('_bcc', $email, $name);
}

/**
* Get Bcc
*
* @return array
*/
public function getBcc() {
return $this->_bcc;
}

/**
* Set email
*
Expand Down

0 comments on commit 7aa0d6c

Please sign in to comment.