X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2FEmailer.php;h=9df6ac36c9dab238b3b2d61eb17ddb9b4eef3474;hb=0541a62134e8af948f0e4c713a42ca70eaa64f3f;hp=a3f85433de04335c57cfabb8a7a5448bf099ca18;hpb=254968a99c7b15aec819c91a5843703b068f9805;p=friendica.git diff --git a/include/Emailer.php b/include/Emailer.php index a3f85433de..9df6ac36c9 100644 --- a/include/Emailer.php +++ b/include/Emailer.php @@ -30,8 +30,8 @@ class Emailer { // generate a mime boundary $mimeBoundary =rand(0,9)."-" - .rand(10000000000,99999999999)."-" - .rand(10000000000,99999999999)."=:" + .rand(100000000,999999999)."-" + .rand(100000000,999999999)."=:" .rand(10000,99999); // generate a multipart/alternative message header @@ -51,7 +51,7 @@ class Emailer { "Content-Transfer-Encoding: base64\n\n" . $textBody . "\n"; - if (!$email_textonly && !is_null($htmlBody)){ + if (!$email_textonly && !is_null($params['htmlVersion'])){ $multipartMessageBody .= "--" . $mimeBoundary . "\n" . // text/html section "Content-Type: text/html; charset=UTF-8\n" . @@ -68,7 +68,7 @@ class Emailer { 'body' => $multipartMessageBody, 'headers' => $messageHeader ); - echo "
"; var_dump($hookdata); killme(); + //echo ""; var_dump($hookdata); killme(); call_hooks("emailer_send", $hookdata); $res = mail( $hookdata['to'], // send to address @@ -81,4 +81,3 @@ class Emailer { return $res; } } -?>