Method to set transport name.

This commit is contained in:
Juan Basso 2011-03-01 18:29:46 -03:00
parent 1a457dc575
commit 6c3a42c82a

View file

@ -147,7 +147,7 @@ class CakeEmail {
* *
* @var string * @var string
*/ */
public $delivery = 'mail'; protected $_transportName = 'mail';
/** /**
* charset the email is sent in * charset the email is sent in
@ -603,6 +603,16 @@ class CakeEmail {
$this->_emailFormat = $format; $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 * Send an email using the specified content, template and layout
* *
@ -629,6 +639,7 @@ class CakeEmail {
$this->_layout = 'default'; $this->_layout = 'default';
$this->_template = ''; $this->_template = '';
$this->_emailFormat = 'text'; $this->_emailFormat = 'text';
$this->_transportName = 'mail';
} }
} }