Added the html and text message in component.

This commit is contained in:
Juan Basso 2011-04-17 17:58:33 -04:00
parent 39236b3229
commit 96686e79bb

View file

@ -365,6 +365,15 @@ class EmailComponent extends Component {
$sent = $lib->send($content);
$this->htmlMessage = $lib->message(CakeEmail::MESSAGE_HTML);
if (empty($this->htmlMessage)) {
$this->htmlMessage = null;
}
$this->textMessage = $lib->message(CakeEmail::MESSAGE_TEXT);
if (empty($this->textMessage)) {
$this->textMessage = null;
}
$this->_header = array();
$this->_message = array();