Re: E-Mail Attachment Filename Encoding Problem
| From: | Manuel Lemos | Date: | Mon, 16 Feb 2009 22:32:28 +0000 |
| Subject: | Re: E-Mail Attachment Filename Encoding Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-288390@lists.php.net to get a copy of this message | ||
Hello,
on 02/16/2009 06:19 AM Edmund Hertle said the following:
> my problem is that I send an e-mail with an attachment (pdf file). I get the
> filename out of a mysql table. While using echo or downloading the file, the
> filename is showed as expected but as an attachment it is not properly
> encoded:
> Should be: PC-Beschaffung 2008 (nur für Lehre)
> Will be: US-ASCII''PC-Beschaffung%202008%20(nur%20f%C3%BCr%20Lehre)
>
> I think I have to encode the file name and already tried utf8encode but this
> didn't help.
You need to use q-encoding.
You may want to try this MIME message composing and sending class that
encodes file name attachments properly when necessary:
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/