Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.12

Bug #10146 mbstring fails to recognize encodings.
Submitted: 2007-02-21 16:12 UTC
From: jebissey at axytrans dot com Assigned: cipri
Status: Closed Package: Mail_Mime (version 1.4.0a1)
PHP Version: 5.1.2 OS: kubuntu dapper
Roadmaps: 1.4.0, 1.4.0a2    
Subscription  


 [2007-02-21 16:12 UTC] jebissey at axytrans dot com (jebissey)
Description: ------------ With the test script, I got this email ===================================================== To: me@xx.com Subject: Test mime message MIME-Version: 1.0 From: me@mydomain.com Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Message-Id: <20070221152304.953827D8167@servubuntu> Date: Wed, 21 Feb 2007 16:23:04 +0100 (CET) X-Virus-Scanned: by Amavis at axytrans.com <html><body>HTML version of email.</body></html> ===================================================== It's ok but html display this: ===================================================== Warning: mb_send_mail() [function.mb-send-mail]: Unsupported charset ""ISO-8859-1"" - will be regarded as ascii in /usr/share/php/Mail/mail.php on line 125 Warning: mb_send_mail() [function.mb-send-mail]: Unsupported transfer encoding "quoted-printable" - will be regarded as 8bit in /usr/share/php/Mail/mail.php on line 125 ===================================================== but if I uncomment setTXTBody() and/or addAttachement(), I got an empty mail (see below the source code) Test script: --------------- $to='you@yourdomain.com'; $from='me@mydomain.com'; $subject='Test mime message'; $text = 'Text version of email.'; // example from http://pear.php.net/manual/en/package.mail.mail-mime.example.php include('Mail.php'); include('Mail/mime.php'); $html = '<html><body>HTML version of email.</body></html>'; $file = 'test-Mail_mime.php'; $crlf = "\n"; $hdrs = array( 'From' => $from, 'Subject' => $subject ); $mime = new Mail_mime($crlf); //$mime->setTXTBody($text.'send()'); $mime->setHTMLBody($html); //$mime->addAttachment($file, 'text/plain'); //do not ever try to call these lines in reverse order $body = $mime->get(); $hdrs = $mime->headers($hdrs); $mail =& Mail::factory('mail'); $mail->send($to, $hdrs, $body); Expected result: ---------------- I expect got a multipart/mixed email ok Actual result: -------------- To: x@xx.com Subject: Test mime message MIME-Version: 1.0 From: me@mydomain.com Content-Type: multipart/mixed; boundary="=_b981b48f40fa491c044f8cd63d7b3995" Mime-Version: 1.0 Content-Transfer-Encoding: BASE64 Message-Id: <20070221152133.940C77D8167@servubuntu> Date: Wed, 21 Feb 2007 16:21:33 +0100 (CET) X-Virus-Scanned: by Amavis at xx.com LS09X2I5ODFiNDhmNDBmYTQ5MWMwNDRmOGNkNjNkN2IzOTk1CkNvbnRlbnQtVHlwZTogdGV4dC9w bGFpbgpDb250ZW50LVRyYW5zZmVyLUVuY29kaW5nOiBiYXNlNjQKQ29udGVudC1EaXNwb3NpdGlv bjogYXR0YWNobWVudDsgZmlsZW5hbWU9InRlc3QtTWFpbF9taW1lLnBocCIKCklEdy9jR2h3Q2dv a2RHODlKMnBsWWtCaGVIbDBjbUZ1Y3k1amIyMG5Pd29rWm5KdmJUMG5iV1ZBYlhsa2IyMWhhVzR1 WTI5dEp6c0sKSkhOMVltcGxZM1E5SjFSbGMzUWdiV2x0WlNCdFpYTnpZV2RsSnpzS0pIUmxlSFFn UFNBblZHVjRkQ0IyWlhKemFXOXVJRzltSUdWdApZV2xzTGljN0Nnb3ZMeUJsZUdGdGNHeGxJR1p5 YjIwZ2FIUjBjRG92TDNCbFlYSXVjR2h3TG01bGRDOXRZVzUxWVd3dlpXNHZjR0ZqCmEyRm5aUzV0 WVdsc0xtMWhhV3d0YldsdFpTNWxlR0Z0Y0d4bExuQm9jQ0FLYVc1amJIVmtaU2duVFdGcGJDNXdh SEFuS1RzS2FXNWoKYkhWa1pTZ25UV0ZwYkM5dGFXMWxMbkJvY0NjcE93b0tKR2gwYld3Z1BTQW5Q R2gwYld3K1BHSnZaSGsrU0ZSTlRDQjJaWEp6YVc5dQpJRzltSUdWdFlXbHNMand2WW05a2VUNDhM MmgwYld3K0p6c0tKR1pwYkdVZ1BTQW5kR1Z6ZEMxTllXbHNYMjFwYldVdWNHaHdKenNLCkNpUmpj bXhtSUQwZ0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amRDd2dKSFJsZUhRdUoyMWhhV3dvS1Njc0lDUm9a V0ZrWlhKekxpSkdjbTl0T2lBa1puSnZiVnh5WEc0aUtUc0tLaThLUHo0SwotLT1fYjk4MWI0OGY0 MGZhNDkxYzA0NGY4Y2Q2M2Q3YjM5OTUtLQo=

Comments

 [2007-03-08 17:22 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-03-09 16:24 UTC] jebissey at axytrans dot com
I have the same result with this version.
 [2007-03-17 16:04 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2007-03-19 12:59 UTC] jebissey at axytrans dot com
You found the solution. When I installed egroupware, I add this line in my php.ini : mbstring.func_overload = 7 All other lines mbstring are commented. I commented this line and now it's OK. Thanks a lot for your response.
 [2007-05-05 15:07 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2008-02-28 03:22 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!