Skip to content

Commit

Permalink
Always set the MIME-Version header
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Virkus committed Apr 15, 2020
1 parent 998aeaf commit 620e316
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/mail_conventions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class MailConventions {
'Content-Transfer-Encoding';
static const String headerContentDisposition = 'Content-Disposition';
static const String headerContentDescription = 'Content-Description';
static const String headerMimeVersion = 'MIME-Version';
//static const String header = '';

}
1 change: 1 addition & 0 deletions lib/message_builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ class MessageBuilder extends PartBuilder {
if (subject != null) {
addHeader('Subject', subject, encode: true);
}
addHeader(MailConventions.headerMimeVersion, '1.0');
if (replyToMessage != null) {
var originalMessageId = replyToMessage.getHeaderValue('message-id');
addHeader(MailConventions.headerInReplyTo, originalMessageId);
Expand Down

0 comments on commit 620e316

Please sign in to comment.