Fixed message encoding
This commit is contained in:
parent
4891ce0f9f
commit
f88bcbc9e7
1 changed files with 2 additions and 2 deletions
|
@ -117,10 +117,10 @@ class Mail
|
|||
|
||||
$this->addRequiredHeader('X-Mailer: PHP/'.phpversion());
|
||||
$this->addRequiredHeader('MIME-Version: 1.0');
|
||||
$this->addRequiredHeader('Content-Type: text/plain; charset=iso-8859-1');
|
||||
$this->addRequiredHeader('Content-Type: text/plain; charset=utf-8');
|
||||
|
||||
$this->headers .= $this->additionalHeaders;
|
||||
|
||||
return (int) mail($this->to, $this->subject, $this->message, $this->headers);
|
||||
return (int) mail($this->to, $this->subject, utf8_encode($this->message), $this->headers);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue