|
|||||||
| HTML email not parsed if is there in mail body | ||||
|---|---|---|---|---|
| If email format is HTML and it contains tag, then html_entity_decode doesn't parse it correctly and mail is truncated | ||||
Category Unknown |
Affected Version 1.6 Stable |
Priority 5 - Medium |
||
Status Unconfirmed |
Fixed Version (none) |
|||
Submitted 08-27-2010 |
||||
|
||||
|
|
|
|
|
|
HTML email not parsed if is there in mail body
If email format is HTML and it contains tag, then html_entity_decode doesn't parse it correctly and mail is truncated
I am using Thunderbird 3.1 to send emails on Ubuntu 9.04. The default mail composition format is 'HTML only'. Sample mail content as copied from Thunderbird is
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> </head> <body bgcolor="#ffffff" text="#000099"> <font size="-1"><font face="Arial">This is a mail with two spaces. Let's see how it goes<br> <br> Regards<br> Vivek<br> </font></font> </body> </html> Code:
This is a mail with two The function striptags() uses html_entity_decode. The PHP function html_entity_decode uses ISO8859-1 charset by default. However, ISO8859-1 charset doesn't parse correctly, and hence the mail is lost. An alternate version, which works for me is PHP Code:
Thanks Vivek Kapoor |
|
|
||
|
||
|
This has also happened in our system. I was able to duplicate the issue and applied the code changes and things worked fine.
|
|
|
||
|
||
|
.
|
![]() |
| Issue Tools |
|---|
Subscribe to this issue |