473,382 Members | 1,647 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,382 software developers and data experts.

HTML formatted email errors

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

Similar topics

3
by: Niel | last post by:
Hello friends, Don't know if i am posting to the right group, but if anyone has an idea about this please let me know. I just wanted to ask that is it true that it is not possible to send HTML...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
4
by: frogman042 | last post by:
My daughter is playing around trying to learn JavaScript and she wrote a small program that prints out a message in increasing and decreasing font size and color changes. She is using document...
2
by: Paul Turley | last post by:
Does anyone have some sample code for sending an HTML formatted message using CDONTS? Thanks RE: Sending HTML formatted mail using CDONTS -- Paul Turley, MCSD, MCAD, MCT, MSF...
4
by: Alex Nitulescu | last post by:
Hi. Is there any way to really disable that stupid HTML auto-formatting in VS.NET ? I have a page with a lot of complicated HTML (many complex tables etc) and JScripts. If it's not formatted...
6
by: Sakcee | last post by:
html = '<html><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" <head></head> <body bgcolor=#ffffff>\r\n Foo foo , blah blah </body></html>' >>> import htmllib >>> import...
21
by: maya | last post by:
hi, I'm designing an HTML email for a client.. I know general guidelines (no CSS, no JavaScript... although I do use limited CSS, inside tags (as in <span style=".."we do this at work and it...
1
by: robbiesmith79 | last post by:
Just so this is out there on the web, I battled the past 24 hours about this. Background info... I developed a ecommerce website in PHP 4 on a shared linux hosting plan from GoDaddy and had the...
4
by: cybervigilante | last post by:
I sent HTML formatted email, using PHP, to my Yahoo address from my server, and it came out fine, styles and all. I sent it to my gmail address to test it and all I see is the raw html code. But I...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.