From 4f630c99f602db19a34e5aa007202d27d4083b4f Mon Sep 17 00:00:00 2001 From: Oreolek Date: Sun, 2 Mar 2014 16:35:30 +0700 Subject: [PATCH] Send message body as really HTML --- application/classes/Model/Instant.php | 2 +- application/classes/Model/Letter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/classes/Model/Instant.php b/application/classes/Model/Instant.php index 48d945b..19f708e 100644 --- a/application/classes/Model/Instant.php +++ b/application/classes/Model/Instant.php @@ -62,7 +62,7 @@ class Model_Instant extends ORM { $template->content = $text; $template->token = $token; $renderer = Kostache_Layout::factory($template->_layout); - $email = Email::factory($subject, $renderer->render($template, $template->_view))->from($sender[0], $sender[1]); + $email = Email::factory($subject, $renderer->render($template, $template->_view), 'text/html')->from($sender[0], $sender[1]); if (is_array($address)) { $email->bcc($address); diff --git a/application/classes/Model/Letter.php b/application/classes/Model/Letter.php index 530d9aa..6696338 100644 --- a/application/classes/Model/Letter.php +++ b/application/classes/Model/Letter.php @@ -75,7 +75,7 @@ class Model_Letter extends ORM { $template->subject = $subject; $template->token = $token; $renderer = Kostache_Layout::factory($template->_layout); - $email = Email::factory($subject, $renderer->render($template, $template->_view))->from($sender[0], $sender[1]); + $email = Email::factory($subject, $renderer->render($template, $template->_view), 'text/html')->from($sender[0], $sender[1]); if (is_array($address)) { $email->bcc($address);