473,545 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2233
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********@spa mcop.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
4714
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 Formatted emails from ASP through CDO. (CDOSYS). I mean I am able to send the email which is HTML formatted through CDONTS that sends email through...
5
2610
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 depending on member expiration dates. When the form is submitted, the code loops through the form contents and sends an email to those members that...
4
3399
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 write and it works fine until she puts it into a function and then calls the function from a button with onClick. This also seems to work OK, with the...
2
1741
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 Practitioner, A+ Technician
4
3753
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 properly, I can get lost in a second. So I spent probably half an hour to format my HTML to suit my tastes. I took care to un-check both check-boxes...
6
3078
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 formatter >>> parser=htmllib.HTMLParser(formatter.NullFormatter()) >>> parser.feed(html)
21
2704
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 works fine, so I figured it's ok..) but I have a few more questions, for example, is it ok to do client-side image-maps? is there a web page...
1
2930
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 html formatted emails sending as text/html and were going fine with limited header information. Then we moved the site over to a Dedicated Linux...
4
5056
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 do get formatted email in gmail, so I know people make it work somehow. I'm looking right at a gmail message that I copied to Dreamweaver and it's...
0
7408
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7815
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7433
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7763
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5976
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4949
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3458
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1891
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
712
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.