diff options
author | Friendika <info@friendika.com> | 2011-09-18 04:34:17 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-09-18 04:34:17 -0700 |
commit | da05ef2ae48beb0f3475cc705fde9a69e5947426 (patch) | |
tree | c10e94c38be5a563ebebe340c27e75c73cc5f13f | |
parent | 309df8417206ed934961a1e2f26b2ca4e57418b3 (diff) | |
download | volse-hubzilla-da05ef2ae48beb0f3475cc705fde9a69e5947426.tar.gz volse-hubzilla-da05ef2ae48beb0f3475cc705fde9a69e5947426.tar.bz2 volse-hubzilla-da05ef2ae48beb0f3475cc705fde9a69e5947426.zip |
rfc2047 encode notification email headers
-rw-r--r-- | include/EmailNotification.php | 7 | ||||
-rw-r--r-- | include/email.php | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/include/EmailNotification.php b/include/EmailNotification.php index 78912c0b9..8861e8f5d 100644 --- a/include/EmailNotification.php +++ b/include/EmailNotification.php @@ -1,4 +1,7 @@ <?php + +require_once('include/email.php'); + class EmailNotification { /** * Send a multipart/alternative message with Text and HTML versions @@ -12,6 +15,10 @@ class EmailNotification { * @param textVersion text only version of the message */ 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)."-" diff --git a/include/email.php b/include/email.php index a36d9adab..b34084549 100644 --- a/include/email.php +++ b/include/email.php @@ -205,4 +205,6 @@ function email_header_encode($in_str, $charset) { $out_str = $start . $out_str . $end; } return $out_str; -}
\ No newline at end of file +} + + |