rfc2047 encode notification email headers
This commit is contained in:
parent
309df84172
commit
da05ef2ae4
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once('include/email.php');
|
||||
|
||||
class EmailNotification {
|
||||
/**
|
||||
* Send a multipart/alternative message with Text and HTML versions
|
||||
|
@ -13,6 +16,10 @@ class EmailNotification {
|
|||
*/
|
||||
static public function sendTextHtmlEmail($fromName,$fromEmail,$replyTo,$toEmail,$messageSubject,$htmlVersion,$textVersion) {
|
||||
|
||||
$fromName = email_header_encode($fromName,'UTF-8');
|
||||
$messageSubject = email_header_encode($messageSubject,'UTF-8');
|
||||
|
||||
|
||||
// generate a mime boundary
|
||||
$mimeBoundary =rand(0,9)."-"
|
||||
.rand(10000000000,9999999999)."-"
|
||||
|
|
|
@ -206,3 +206,5 @@ function email_header_encode($in_str, $charset) {
|
|||
}
|
||||
return $out_str;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue