Re: [PHP] E-Mail Attachment Filename Encoding Problem
On Tue, Feb 17, 2009 at 7:28 AM, Richard Heyes wrote: > > Cats are the other white meat. Sorry have flu, may be delirious > > You haven't been around any birds recently have you? > > -- > (A concerned) Richard Heyes > > HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: > http://www.rgraph.org (Updated February 14th) > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Never met a pussy I didn't like :-P -- Bastien Cat, the other other white meat
Re: [PHP] E-Mail Attachment Filename Encoding Problem
> Cats are the other white meat. Sorry have flu, may be delirious You haven't been around any birds recently have you? -- (A concerned) Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] E-Mail Attachment Filename Encoding Problem
On Tue, 2009-02-17 at 10:30 +, Richard Heyes wrote: > > The *other* white meat? > > Sorry, no idea what that means. > Cats are the other white meat. Sorry have flu, may be delirious -- Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] E-Mail Attachment Filename Encoding Problem
> The *other* white meat? Sorry, no idea what that means. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] E-Mail Attachment Filename Encoding Problem
On Tue, 2009-02-17 at 10:19 +, Richard Heyes wrote: > There's no reason not to use it - it works for a good many people. And > a few cats too. The *other* white meat? -- Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] E-Mail Attachment Filename Encoding Problem
> Can someone explain to me why pear mail_mime is not a good idea to use? I > noticed some comments like that a few times but no explanation There's no reason not to use it - it works for a good many people. And a few cats too. -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] E-Mail Attachment Filename Encoding Problem
on 02/17/2009 03:44 AM Edmund Hertle said the following: > 2009/2/16 Richard Heyes > >>> I'm already using pear Mail_Mime. >> [Ducks and runs off] >> >> -- >> Richard Heyes >> >> HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: >> http://www.rgraph.org (Updated February 14th) >> > > Can someone explain to me why pear mail_mime is not a good idea to use? I > noticed some comments like that a few times but no explanation The PHP world is very pragmatic. If it works for you, it should be good enough. Otherwise, you may need to look for something else. -- 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] E-Mail Attachment Filename Encoding Problem
2009/2/16 Richard Heyes > > I'm already using pear Mail_Mime. > > [Ducks and runs off] > > -- > Richard Heyes > > HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: > http://www.rgraph.org (Updated February 14th) > Can someone explain to me why pear mail_mime is not a good idea to use? I noticed some comments like that a few times but no explanation
Re: [PHP] E-Mail Attachment Filename Encoding Problem
> I'm already using pear Mail_Mime. [Ducks and runs off] -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] E-Mail Attachment Filename Encoding Problem
Carl-Fredrik Gustafsson wrote: > To me it looks like he only wants the spaces and special-chars in the > filename to be "readable" again. Yep, I think so too. Spaces are no problem, but 8-bit characters need to be encoded. /Per -- Per Jessen, Zürich (1.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] E-Mail Attachment Filename Encoding Problem
Per Jessen schrieb: Edmund Hertle wrote: 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. I think you need to mime-encode it - mb_encode_mimeheader(). I haven't tried it with attachments though. /Per To me it looks like he only wants the spaces and special-chars in the filename to be "readable" again. I guess you submit the filename over the url, by doing that it automatically gets "url-encoded" (spaces and special chars are converted to entities). If that's all you want (convert the entities to chars again), you need to apply a urldecode() on the filename, then I think you should be fine. Greets Calle -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] E-Mail Attachment Filename Encoding Problem
Edmund Hertle wrote: > 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. I think you need to mime-encode it - mb_encode_mimeheader(). I haven't tried it with attachments though. /Per -- Per Jessen, Zürich (0.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] E-Mail Attachment Filename Encoding Problem
2009/2/16 Richard Heyes > Hi, > > > 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. > > This may help: > > http://www.phpguru.org/static/mime.mail.html Hi. I'm already using pear Mail_Mime. -eddy
Re: [PHP] E-Mail Attachment Filename Encoding Problem
Hi, > 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. This may help: http://www.phpguru.org/static/mime.mail.html -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated February 14th) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] E-Mail Attachment Filename Encoding Problem
Hey, 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. -eddy