X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2FEmailer.php;h=d0568f600128a4f447fbaf4f2561865f613292bd;hb=6605e30cf2eea2cffe6dd208af1615db9d212d40;hp=e11954200c5aa47807ab6c51255177a6fdc886c6;hpb=b2527039b7b7c4ee3ac88e788c34c2a6ff1b671e;p=friendica.git diff --git a/include/Emailer.php b/include/Emailer.php index e11954200c..d0568f6001 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,9999999999)."-" - .rand(10000000000,9999999999)."=:" + .rand(10000000000,99999999999)."-" + .rand(10000000000,99999999999)."=:" .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