Skip to content

Commit

Permalink
MailMessage: ensure encoding is set for empty messages
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jul 24, 2017
1 parent 66254d8 commit 9fbb0d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mail/MailMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
*/
class MailMessage extends Message
{
const ENCODING = APP_CHARSET;

/** @var Attachment */
private $attachment;

Expand Down Expand Up @@ -81,6 +83,9 @@ public static function createNew()
{
$message = new self(['root' => true]);

// ensure encoding is set
$message->getHeaders()->setEncoding(self::ENCODING);

return $message;
}

Expand Down

0 comments on commit 9fbb0d4

Please sign in to comment.