473,320 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 2220
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: bonfils | last post by:
I believe this question has been asked before, but I haven't found the solution to it. I've given up on the php mail() function (doesn't work fast enough for sending large amounts of HTML...
2
by: barb28 | last post by:
Hello, sometimes I have noticed that in web addresses, the number: 20% will show up in the address. I think this is somehow related to a 'blank space', but am unsure, does anyone know about...
1
by: Mark Sandfox | last post by:
Is there a way to restrict the user to only selecting and sending either a ..gif or .jpg. Everything I have read says this option can not be done by design (security reasons). I find that irronic...
4
by: splicemix | last post by:
Hi all, I have recently set up a Drupal website. I am a beginner. My shared host server does not allow nobody@localhost to send emails, and prevents access to php.ini, so I spent some time...
7
by: Stimp | last post by:
I want to output a number, say 20, as 20.00 i.e. I want to always have 2 decimal places I don't want any currency information, therefore String.Format("{0:c}") doesn't work for me. Can't...
4
by: thenewuser | last post by:
Hi all, I am working on windows 2000 and using php 5.0 and apache 2.0.59. I am facing a problem while parsing a text file.Actually I am using a pop server for parsing an email.I am downloading...
4
by: =?Utf-8?B?dHBhcmtzNjk=?= | last post by:
I have a web page that at the click of a button must send a bunch (1000+) emails. Each email is sent individually. I have the code working fine, using Mail Message classes and smtp and all that. ...
12
by: MikeB | last post by:
I created a small website for a friend. On this website he has a contact page where people can send him email. When I wrote this page I checked some tutorial pages and they warned about certain...
4
by: matthewroth | last post by:
I am at my wits end. I have this code (posted below) with a send email button, which is in theory supposed to send just that page. The problem, that i can't resolve, is that is sends an email for...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.