From ad1d98b397e96f90288a49ec11a8cc229607ff7b Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 14 Nov 2016 13:12:22 +0000 Subject: [PATCH] mail : change the boundary format to be compatible with Orange git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3196 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- mail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail.php b/mail.php index 581a943..4681506 100644 --- a/mail.php +++ b/mail.php @@ -1314,7 +1314,7 @@ class mail $data = openssl_random_pseudo_bytes (16); $data[6] = chr(ord($data[6]) & 0x0f | 0x40); // set version to 0010 $data[8] = chr(ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10 - return "-----=_".vsprintf ('%s%s-%s-%s-%s-%s%s%s', + return "-----".vsprintf ('%s%s%s%s%s%s%s%s', str_split (bin2hex ($data), 4)); }