diff --git a/app/code/local/Aschroder/SMTPPro/Model/Email.php b/app/code/local/Aschroder/SMTPPro/Model/Email.php index 575f755..a559061 100644 --- a/app/code/local/Aschroder/SMTPPro/Model/Email.php +++ b/app/code/local/Aschroder/SMTPPro/Model/Email.php @@ -35,6 +35,7 @@ public function send() { $mail->setFrom($this->getFromEmail(), $this->getFromName()) ->addTo($this->getToEmail(), $this->getToName()) + ->clearSubject() ->setSubject($this->getSubject()); $transport = new Varien_Object(); // for observers to set if required diff --git a/app/code/local/Aschroder/SMTPPro/Model/Email/Template.php b/app/code/local/Aschroder/SMTPPro/Model/Email/Template.php index 1a945f8..3db14ed 100644 --- a/app/code/local/Aschroder/SMTPPro/Model/Email/Template.php +++ b/app/code/local/Aschroder/SMTPPro/Model/Email/Template.php @@ -89,6 +89,7 @@ public function send($email, $name = null, array $variables = array()) $mail->setBodyHTML($text); } + $mail->clearSubject(); $mail->setSubject('=?utf-8?B?' . base64_encode($this->getProcessedTemplateSubject($variables)) . '?='); $mail->setFrom($this->getSenderEmail(), $this->getSenderName());