By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,829 Members | 2,308 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,829 IT Pros & Developers. It's quick & easy.

HTML formatted email errors

P: n/a
Hi,

I am generating a HTML formatted email in PHP, but I am getting the
most bizarre error, it will randomly delete characters out of the HTML
code while in transit to the address, therefore generating errors in
the final output.

For instance, a "</td>" tag will become "/td>" or a URL will end in
".co.k", missing the "u". This seems to happen totally randomly from
one try to the next throughout the code.

Has anyone had or seen this problem before?

The PHP code I use is straight forward, so no errors there.
I am using a lot of absolute URL paths to images and spacer gifs in
the email (about 20-30), is there a limit to what an email can handle?

I would appreciate any insight anyone has.

Cheers
Paul
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Paul Lamonby wrote:
I am generating a HTML formatted email in PHP,
Why?
but I am getting the most bizarre error, it will randomly delete
characters out of the HTML code while in transit to the address,
[ ... ]
is there a limit to what an email can handle?


Text lines may not exceed 1 000 characters.

--
Jock
Jul 17 '05 #2

P: n/a
Paul Lamonby wrote:

I am generating a HTML formatted email in PHP


That's your problem right there. Email is text, not HTML.

bblackmoor
2004-06-14
Jul 17 '05 #3

P: n/a
Thanks for the constructive comments, very helpful!
I too am not a fan of HTML formatted emails, but why create MIME types
in email and not use them? If a client requires HTML formatted emails
then thats what I will supply. ( I assume thats your direction of
comment. )

Paul

Brandon Blackmoor <bb********@spamcop.net> wrote in message news:<2j************@uni-berlin.de>...
Paul Lamonby wrote:

I am generating a HTML formatted email in PHP


That's your problem right there. Email is text, not HTML.

bblackmoor
2004-06-14

Jul 17 '05 #4

P: n/a
Paul Lamonby wrote upside-down:
I too am not a fan of HTML formatted emails, but why create MIME types
in email and not use them?
I make use of MIME and have nothing to do with so-called HTML email.
If a client requires HTML formatted emails then thats what I will supply.


Yeah,

The son-of-a-bitch,
Is probably rich,
So smile with all your might.

(Noel Coward)

--
Jock
Jul 17 '05 #5

P: n/a
Hello,

On 06/15/2004 09:22 AM, Paul Lamonby wrote:
Thanks for the constructive comments, very helpful!
I too am not a fan of HTML formatted emails, but why create MIME types
in email and not use them? If a client requires HTML formatted emails
then thats what I will supply. ( I assume thats your direction of
comment. )


I think most people ignore that you can send a message with plain text
and HTML versions in the same body message using MIME
multipart/alternative type. If you send your HTML messages like this,
there is no problem because you can still make your message readable
with e-mail clients that do not support text, even if the plain text
part says that this is an HTML message.

This is not a trivial task but if you want to send messages this way,
you may want to try this class to that makes it very simple:

http://www.phpclasses.org/mimemessage
--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.