]> git.mxchange.org Git - friendica.git/blobdiff - include/EmailNotification.php
include some notes on grabbing the tumblr avatar
[friendica.git] / include / EmailNotification.php
index 209d5476a71b1e4708b46e4b08456bd2d33067de..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,14 +15,10 @@ class EmailNotification {
         * @param textVersion           text only version of the message
         */
        static public function sendTextHtmlEmail($fromName,$fromEmail,$replyTo,$toEmail,$messageSubject,$htmlVersion,$textVersion) {
-               logger("sendTextHtmlEmail: BEGIN");
-               logger("fromName:       " . $fromName);
-               logger("fromEmail:      " . $fromEmail);
-               logger("replyTo:        " . $replyTo);
-               logger("toEmail:        " . $toEmail);
-               logger("messageSubject: " . $messageSubject);
-               //logger("htmlVersion:    " . $htmlVersion);
-               //logger("textVersion:    " . $textVersion);
+
+               $fromName = email_header_encode($fromName,'UTF-8'); 
+               $messageSubject = email_header_encode($messageSubject,'UTF-8');
+               
                
                // generate a mime boundary
                $mimeBoundary   =rand(0,9)."-"