472,354 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 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 2167
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: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made but the http to https rule only works for...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

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.