Reply to Re: php mail() randomly appends "%20" to my emails

Your name:

Reply:


Posted by Lars Eighner on 06/29/07 09:01

In our last episode, <1183027068.286012.25340@g37g2000prf.googlegroups.com>,
the lovely and talented stevong broadcast on comp.lang.php:

> Hi everyone,

> I have a mailing list generated from php and sent out by mail().

> But i often have broken graphics due to the fact that it randomly
> appends %20 to the html output!

> Anybody has the same issue?

You haven't given us any code or even examples of the problem. Nonetheless
I suspect you are somehow urlencoding spaces in filenames or paths ---
perhaps ones you don't realized are there because they are at the end,
so 'some/path/ ' . 'mypic.jpg' gets urlencoded to /some/path/%20mypic.jpg'.
Try using 'trim' on everything you can think of, and don't urlencode urls
unless you have reason to think they may have characters that need escaping.

If that doesn't seem to do it, you might try posting some actual examples of
the errors you get or even suspicious areas of code.

And, oh, yeah, people with more brains than free time to read spam, filter
their mail to send html mail right to the old bit bucket.

--
Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
Countdown: 571 days to go.
Owing to googlegroups not screening users to eliminate spammers and other
USENET abusers, I do not see most posts from googlegroups.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация