]> git.mxchange.org Git - friendica.git/blobdiff - include/Emailer.php
Fix SQL date format bug in dfrn
[friendica.git] / include / Emailer.php
index 7aae57346e0bb08626eab9abab7257f9fab102d7..b0cdc3fe63b556ad6dc0a67a61efd427b0b4622b 100644 (file)
@@ -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" .