X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FUtil%2FEmailer.php;h=ba65296f507a2f3faaacf00ee6484cc94233c458;hb=f32eb0292969d3463f689c42181d12f5969da9ca;hp=ec37204000b3b8d0a42f5275037006cb40dfc674;hpb=e90b0748aaa879bc5dfbffb12083c26f1d377342;p=friendica.git diff --git a/src/Util/Emailer.php b/src/Util/Emailer.php index ec37204000..ba65296f50 100644 --- a/src/Util/Emailer.php +++ b/src/Util/Emailer.php @@ -37,8 +37,8 @@ class Emailer $email_textonly = PConfig::get($params['uid'], "system", "email_textonly"); } - $fromName = Email::emailHeaderEncode(html_entity_decode($params['fromName'], ENT_QUOTES, 'UTF-8'), 'UTF-8'); - $messageSubject = Email::emailHeaderEncode(html_entity_decode($params['messageSubject'], ENT_QUOTES, 'UTF-8'), 'UTF-8'); + $fromName = Email::encodeHeader(html_entity_decode($params['fromName'], ENT_QUOTES, 'UTF-8'), 'UTF-8'); + $messageSubject = Email::encodeHeader(html_entity_decode($params['messageSubject'], ENT_QUOTES, 'UTF-8'), 'UTF-8'); // generate a mime boundary $mimeBoundary =rand(0, 9)."-" @@ -72,12 +72,12 @@ class Emailer "--" . $mimeBoundary . "--\n"; // message ending // send the message - $hookdata = array( + $hookdata = [ 'to' => $params['toEmail'], 'subject' => $messageSubject, 'body' => $multipartMessageBody, 'headers' => $messageHeader - ); + ]; //echo "
"; var_dump($hookdata); killme();
 		call_hooks("emailer_send", $hookdata);
 		$res = mail(