mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Added the methods to set/add/get Cc and Bcc.
This commit is contained in:
parent
fae641e619
commit
7aa0d6c1eb
1 changed files with 62 additions and 0 deletions
|
@ -254,6 +254,68 @@ class CakeEmail {
|
|||
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
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue