mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Added the html and text message in component.
This commit is contained in:
parent
39236b3229
commit
96686e79bb
1 changed files with 9 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue