Skip to content
Permalink
Browse files

Mime Type on HTML Emails

Some email readers can not interpret HTML emails without the MIME-Version set on the email header.
  • Loading branch information...
lapenz committed Oct 8, 2014
1 parent 0c3b9e4 commit b9251f6036e6be89394ca23e0303dd85cd898b1c
Showing with 1 addition and 0 deletions.
  1. +1 −0 cake/libs/controller/components/email.php
@@ -622,6 +622,7 @@ function _createHeader() {
} elseif ($this->sendAs === 'text') {
$headers['Content-Type'] = 'text/plain; charset=' . $this->charset;
} elseif ($this->sendAs === 'html') {
$headers['MIME-Version'] = '1.0';
$headers['Content-Type'] = 'text/html; charset=' . $this->charset;
} elseif ($this->sendAs === 'both') {
$headers['Content-Type'] = 'multipart/alternative; boundary="alt-' . $this->__boundary . '"';

0 comments on commit b9251f6

Please sign in to comment.
You can’t perform that action at this time.