mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Method to set transport name.
This commit is contained in:
parent
1a457dc575
commit
6c3a42c82a
1 changed files with 12 additions and 1 deletions
|
@ -147,7 +147,7 @@ class CakeEmail {
|
|||
*
|
||||
* @var string
|
||||
*/
|
||||
public $delivery = 'mail';
|
||||
protected $_transportName = 'mail';
|
||||
|
||||
/**
|
||||
* charset the email is sent in
|
||||
|
@ -603,6 +603,16 @@ class CakeEmail {
|
|||
$this->_emailFormat = $format;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set transport name
|
||||
*
|
||||
* @param string $name
|
||||
* @return void
|
||||
*/
|
||||
public function setTransport($name) {
|
||||
$this->_transportName = (string)$name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Send an email using the specified content, template and layout
|
||||
*
|
||||
|
@ -629,6 +639,7 @@ class CakeEmail {
|
|||
$this->_layout = 'default';
|
||||
$this->_template = '';
|
||||
$this->_emailFormat = 'text';
|
||||
$this->_transportName = 'mail';
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue