Skip to content

Commit

Permalink
Trial fix for bug #726 (double dots in mail body)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystralkk committed Jan 4, 2017
1 parent 25cadfe commit 665e9fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/classes/Mail.php
Expand Up @@ -92,6 +92,9 @@ public static function send($to, $subject, $body, $from = '', $html = false, $pr
// Create a message
$message = \Swift_Message::newInstance();

// Avoid double dots problem
$message->setEncoder(new \Swift_Mime_ContentEncoder_Base64ContentEncoder());

if (!empty($_CONF['mail_charset'])) {
$message->setCharset($_CONF['mail_charset']);
} else {
Expand Down

0 comments on commit 665e9fd

Please sign in to comment.