Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #639 from duckduckgo/john/mail-mime-part-ordering
Browse files Browse the repository at this point in the history
Switch order of plain text / html mail parts
  • Loading branch information
jbarrett committed Apr 13, 2015
2 parents 739ce9d + 8563cec commit 46ce310
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/DDGC/Postman.pm
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,17 @@ sub html_mail {
parts => [
Email::MIME->create(
attributes => {
content_type => 'text/html; charset="UTF-8"',
content_type => 'text/plain; charset="UTF-8"',
content_transfer_encoding => '8bit',
},
body => $body,
body => $self->plaintext_formatter->parse($body),
),
Email::MIME->create(
attributes => {
content_type => 'text/plain; charset="UTF-8"',
content_type => 'text/html; charset="UTF-8"',
content_transfer_encoding => '8bit',
},
body => $self->plaintext_formatter->parse($body),
body => $body,
),
map {
Email::MIME->create(%{$_});
Expand Down

0 comments on commit 46ce310

Please sign in to comment.