diff --git a/lib/Cake/Network/CakeEmail.php b/lib/Cake/Network/CakeEmail.php index 00c2cab2b..05b953cbc 100644 --- a/lib/Cake/Network/CakeEmail.php +++ b/lib/Cake/Network/CakeEmail.php @@ -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'; } }