469,623 Members | 1,800 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,623 developers. It's quick & easy.

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

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?

Jun 28 '07 #1
4 2072
On 28 Jun., 12:37, stevong <stev...@gmail.comwrote:
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?
I didnt notice something like that but it sounds like a multipart
or MIMIE issue to me. Check out http://www.php.net/mail for some
inspiration.

Jun 28 '07 #2
stevong wrote:
But i often have broken graphics due to the fact that it randomly
appends %20 to the html output!
It seems more likely that the *input* HTML is broken. Check there's no
whitespace between the URL and the closing quote mark.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 7 days, 16:07.]

Long-Awaited Zeldman Article
http://tobyinkster.co.uk/blog/2007/0...ldman-in-time/
Jun 28 '07 #3
stevong <st*****@gmail.comwrote:
>
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?
Are you claiming that the text is quoted-printable? Are you sure it is
really quoted-printable?
--
Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Jun 29 '07 #4
In our last episode, <11*********************@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.
Jun 29 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by bonfils | last post: by
4 posts views Thread by splicemix | last post: by
7 posts views Thread by Stimp | last post: by
4 posts views Thread by =?Utf-8?B?dHBhcmtzNjk=?= | last post: by
12 posts views Thread by MikeB | last post: by
4 posts views Thread by matthewroth | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.