]> git.mxchange.org Git - friendica.git/commitdiff
rfc2047 encode notification email headers
authorFriendika <info@friendika.com>
Sun, 18 Sep 2011 11:34:17 +0000 (04:34 -0700)
committerFriendika <info@friendika.com>
Sun, 18 Sep 2011 11:34:17 +0000 (04:34 -0700)
include/EmailNotification.php
include/email.php

index 78912c0b96175b673293130f6aadf55d2ba4615f..8861e8f5d82e3140f17da3f8705bc08cb68dd90b 100644 (file)
@@ -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)."-"
index a36d9adab954da68e8c15e1aa6b152693de87ce6..b3408454904dd13dad0e98d5ec902966dcf22d1b 100644 (file)
@@ -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
+} 
+
+