HTML getting stripped?

13 views
Skip to first unread message

Der Wanderer

unread,
Oct 8, 2009, 4:41:17 AM10/8/09
to MailPress
Hi all,

Has anyone seen this? I've setup up my mailing lists, category
manager, and so on so that when I create a post, an email is
automatically sent out with the body of the post. Great feature.

However, there seems to be a problem now (with the latest version):
No HTML comes through! The template graphics come through fine, but
no HTML that I add appears in the email. I first noticed because no
images that I posted appeared in the email, then I tested with just
setting italic and bold HTML tags. They don't appear in the email
either. Seems all HTML is getting stripped out.

But, if I send an email manually through MailPress (using the "New
Mail" menu item), HTML appears fine in the email!

No idea what I'm doing wrong. I've scoured the various option pages.
I see nothing that would cause this.

Any clues?

Thanks,
DW

andré renaut

unread,
Oct 8, 2009, 8:27:28 AM10/8/09
to mail...@googlegroups.com
plugin conflict ?

try with mailpress alone

2009/10/8 Der Wanderer <the...@gmail.com>



--
Pensez à l'environnement avant d'imprimer ce message.
Please, think about the environment before printing this message.

Der Wanderer

unread,
Oct 9, 2009, 8:52:21 AM10/9/09
to MailPress
Shucks, that was a good idea (especially since there's that handy
"MailPress Test" widget on the post edit page now), but,
unfortunately, no...still stripping the HTML. :-(

You can also see this when you click on the "View sent mail" link in
the little widget.

Does the functionality from the Post edit page simply take the
contents of the post field (I don't know what the real name is in the
database) and format it within the template? Could there be a
stripped out version of the data in the database duplicated? I find
this hard to believe, but you'd think this would be an easy one to
track down.

By the way, I tested this with multiple sites on HostGator...same
problem.

Again, works great from from the "New Mail" interface.

Thanks,
DW

On Oct 8, 8:27 pm, andré renaut <andre.ren...@gmail.com> wrote:
> plugin conflict ?
>
> try with mailpress alone
>
> 2009/10/8 Der Wanderer <ther...@gmail.com>

andré renaut

unread,
Oct 9, 2009, 9:21:36 AM10/9/09
to mail...@googlegroups.com
the functionality from the Post edit page sends a mail to the recipient and you can find the same mail in the mails list.

did you activate the logs ?

anything in there ?

2009/10/9 Der Wanderer <the...@gmail.com>

Der Wanderer

unread,
Oct 10, 2009, 8:44:45 AM10/10/09
to MailPress
Good idea. Doesn't seem like any errors were reported:

2009-10-10 20:39:18 000000 -- **** Start logging (4.0.1) **** MP_Mail
*** level : 0
2009-10-10 20:39:18 000000 -- **** Empty user/password for SMTP
connection ****
2009-10-10 20:39:18 000000 -- Disconnecting from wanderer_wrdp8
(MP_Mail)
2009-10-10 20:39:18 000000 -- Disconnected (MP_Mail)
2009-10-10 20:39:18 000000 -- Connecting to wanderer_wrdp8 (MP_Mail)
2009-10-10 20:39:18 000000 -- Connected (MP_Mail)
2009-10-10 20:39:18 000000 -- :::: MAIL SAVED ::::
2009-10-10 20:39:18 000000 -- LOG ended with status : TRUE
2009-10-10 20:39:18 000000 -- **** End logging **** mailpress ***
MP_Mail *** level : 0

Anything special here? I don't think so. I sent the mail from the
Edit Post page using the "Send" button in the "MailPress Test"
widget. Yep, it's in the mail list. HTML stripped out in all places.

I just noticed that 4.01 was released. I was hoping there would be a
magic fix, but it still has the same behavior.

Thanks,
DW

On Oct 9, 9:21 pm, andré renaut <andre.ren...@gmail.com> wrote:
> the functionality from the Post edit page sends a mail to the recipient and
> you can find the same mail in the mails list.
>
> did you activate the logs ?
>
> anything in there ?
>
> 2009/10/9 Der Wanderer <ther...@gmail.com>

Valerama

unread,
Oct 10, 2009, 8:57:24 AM10/10/09
to MailPress
Not an expert, but I spent a good deal of time last week playing with
the software to figure it out. Very powerful stuff.

What theme are you using? Which page template are you testing? What
kind of html tags do you have that are getting stripped?

andré renaut

unread,
Oct 10, 2009, 9:19:27 AM10/10/09
to mail...@googlegroups.com
set logging level to E_ALL

and do a test again

2009/10/10 Valerama <vcu...@gmail.com>

Der Wanderer

unread,
Oct 10, 2009, 10:43:34 PM10/10/09
to MailPress
Here's some more info:

Using the "oriental" theme (it's available at the WP.org themes
page). I've tried the basic WP ones; same result.
Using the "Mailpress Classic" template (but have tried all).
By the way, I've also tried different mailing methods ("Mailpress
version of wp_mail" option)

HTML tags that I've noticed getting stripped:

"<img ..." - this is the one where I first noticed the problem. No
images were coming in.
"<ul>"
"<li>"
"<em>"
"<strong>" - just tested with basic formatting ones to confirm it was
an HTML issue.

OK, I tested with E_ALL. One very interesting thing happened: ALL
text was missing from the Edit Post generated email. The only thing
that came through was the name of the post. Keep in mind that I'm not
publishing any of these posts, just using the "MailPress Test"
widget. I tested with publishing before...makes no difference.

When I turned off logging, the email text reappeared again, but with
stripped HTML tags.

I saw some warnings (near the top) with NEXTGen gallery so I disabled
it. No change.

I've pasted the log below. There's nothing really that I can see.
The HTML is coming through as I'm seeing it. Well, in this case, none
of my posting text is coming through (seems to be a conflict with
E_ALL).

Thanks again for your attention, guys.

-DW

BEGIN LOG
=========

2009-10-11 10:18:39 000000 -- **** Start logging (4.0.1) **** MP_Mail
*** level : 8191
2009-10-11 10:18:39 000000 -- PHP [E_STRICT] 2048 : Non-static method
nggGallery::get_option() should not be called statically, assuming
$this from incompatible context in /home/wanderer/public_html/
wp_swiconline/wp-content/plugins/nextgen-gallery/lib/shortcodes.php at
line 44
2009-10-11 10:18:39 000000 -- PHP [E_STRICT] 2048 : Non-static method
nggGallery::get_option() should not be called statically, assuming
$this from incompatible context in /home/wanderer/public_html/
wp_swiconline/wp-content/plugins/nextgen-gallery/lib/shortcodes.php at
line 44
2009-10-11 10:18:39 000000 --

------------------- start of mail -------------------
From : <just hiding email addresses from public forum>
To : <just hiding email addresses from public forum>
Subject : [Shekou Women&#039;s International Club] New Post : New
Post
------------------- plaintext -------------------
Shekou Women&#039;s International Club



New Post (http://www.wandererllc.com/wp_swiconline/?p=386)
October 11, 2009


Html version of this mail ->
http://www.wandererllc.com/wp_swiconline/?page_id=2&view=fd06bbc1884a8f3fc52b82126ed7ffc8&id=162

this mail is brought to you by MailPress .

Unsubscribe ? -> http://www.wandererllc.com/wp_swiconline/?page_id=2&del=fd06bbc1884a8f3fc52b82126ed7ffc8

------------------- text/html -------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /
>
<title></title>
</head>
<body>
<div align='center' style='color:#000;font-family:
verdana,geneva;width:760px;'>
<small style='color:#c0c0c0;font-family:Times,serif;font-size:
80%;font-size-adjust:none;font-stretch:normal;font-style:italic;font-
variant:normal;font-weight:normal;letter-spacing:0.1em;line-
height:normal;'>
Having trouble reading this email? View it on our
<a href='http://www.wandererllc.com/wp_swiconline/?
page_id=2&view=fd06bbc1884a8f3fc52b82126ed7ffc8&id=162'
style='color:#c0c0c0;font-family:Times,serif;font-size:80%;font-size-
adjust:none;font-stretch:normal;font-style:italic;font-
variant:normal;font-weight:bold;letter-spacing:0.1em;line-
height:normal;'>website</a>.
<br />
<br />
</small>
<div style = "">
<table cellspacing='0' cellpadding='0' style='margin:0;padding:
0;background:#fff none repeat scroll 0%;;color:#000;font-
family:Verdana,sans-serif;'>
<tbody style='margin:0;padding:0;'>
<tr style='margin:0;padding:0;'>
<td style='margin:0pt;padding:15px 10px 15px 60px;height:
75px;width:80%;background:#90A090 none repeat scroll 0%;border-
color:#000 rgb(85, 102, 85) rgb(170, 187, 170) rgb(153, 170,
153);border-style:solid solid solid double;border-width:1px 1px
3px;letter-spacing:0.2em;line-height:normal;font-stretch:normal;font-
style:italic;font-variant:normal;font-weight:normal;font-size-
adjust:none;font-family:Times,serif;font-size:230%;border-left:1px
solid #000;'>
<a href='http://www.wandererllc.com/wp_swiconline'
style='color:#fff;text-decoration:none;'
onmouseover="this.style.textDecoration='underline';"
onmouseout="this.style.textDecoration='none';">
Shekou Women&#039;s International Club </a>
</td>
<td rowspan='4' style='padding:20px 0pt 10px 30px;margin:0 2px
0 0;vertical-align:top;width:11em;background:#fff none repeat scroll
0%;border-left:1px dotted #ccc;border-top:3px solid #E0E6E0;border-
right:1px solid #000;'>
<!--
<ul style='margin:0pt;padding-left:3px;color:#CCCCCC;font-
weight:bold;list-style-type:none;text-transform:lowercase;'>
<li style='margin-top:10px;padding-bottom:2px;font-
family:Times,serif;font-size:110%;font-size-adjust:none;font-
stretch:normal;font-style:italic;font-variant:normal;font-
weight:normal;letter-spacing:0.1em;line-height:normal;'>
blogroll
<ul style='margin:0pt;padding:0pt;padding-left:
3px;color:#CCCCCC;text-transform:lowercase;text-align:left;font-
variant:normal;font-weight:normal;line-height:100%;list-style-
type:none;'>
<li style='margin:0pt;padding:0pt 0pt 2px 12px;border:0pt
none;font-family:Verdana,sans-serif;font-size:12px;font-size-
adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:0pt;line-height:
115%;margin:0pt;padding:0pt 0pt 0pt 12px;'>
<a href='#' style='color:#000000;text-decoration:none;'>
MailPress
</a>
</li>
<li style='margin:0pt;padding:0pt 0pt 2px 12px;border:0pt
none;font-family:Verdana,sans-serif;font-size:12px;font-size-
adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:0pt;line-height:
115%;margin:0pt;padding:0pt 0pt 0pt 12px;'>
<a href='#' style='color:#000000;text-decoration:none;'>
MailPress
</a>
</li>
<li style='margin:0pt;padding:0pt 0pt 2px 12px;border:0pt
none;font-family:Verdana,sans-serif;font-size:12px;font-size-
adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:0pt;line-height:
115%;margin:0pt;padding:0pt 0pt 0pt 12px;'>
<a href='#' style='color:#000000;text-decoration:none;'>
MailPress
</a>
</li>
<li style='margin:0pt;padding:0pt 0pt 2px 12px;border:0pt
none;font-family:Verdana,sans-serif;font-size:12px;font-size-
adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:0pt;line-height:
115%;margin:0pt;padding:0pt 0pt 0pt 12px;'>
<a href='#' style='color:#000000;text-decoration:none;'>
MailPress
</a>
</li>
</ul>
</li>
<li style='margin-top:10px;padding-bottom:2px;font-
family:Times,serif;font-size:110%;font-size-adjust:none;font-
stretch:normal;font-style:italic;font-variant:normal;font-
weight:normal;letter-spacing:0.1em;line-height:normal;'>
blogroll
<ul style='margin:0pt;padding:0pt;padding-left:
3px;color:#CCCCCC;text-transform:lowercase;text-align:left;font-
variant:normal;font-weight:normal;line-height:100%;list-style-
type:none;'>
<li style='margin:0pt;padding:0pt 0pt 2px 12px;border:0pt
none;font-family:Verdana,sans-serif;font-size:12px;font-size-
adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:0pt;line-height:
115%;margin:0pt;padding:0pt 0pt 0pt 12px;'>
<a href='#' style='color:#000000;text-decoration:none;'>
MailPress
</a>
</li>
<li style='margin:0pt;padding:0pt 0pt 2px 12px;border:0pt
none;font-family:Verdana,sans-serif;font-size:12px;font-size-
adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:0pt;line-height:
115%;margin:0pt;padding:0pt 0pt 0pt 12px;'>
<a href='#' style='color:#000000;text-decoration:none;'>
MailPress
</a>
</li>
<li style='margin:0pt;padding:0pt 0pt 2px 12px;border:0pt
none;font-family:Verdana,sans-serif;font-size:12px;font-size-
adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:0pt;line-height:
115%;margin:0pt;padding:0pt 0pt 0pt 12px;'>
<a href='#' style='color:#000000;text-decoration:none;'>
MailPress
</a>
</li>
<li style='margin:0pt;padding:0pt 0pt 2px 12px;border:0pt
none;font-family:Verdana,sans-serif;font-size:12px;font-size-
adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:0pt;line-height:
115%;margin:0pt;padding:0pt 0pt 0pt 12px;'>
<a href='#' style='color:#000000;text-decoration:none;'>
MailPress
</a>
</li>
</ul>
</li>
</ul>
--> </td>
</tr>
<tr style='margin:0;padding:0;'>
<td style='margin:0;padding:30px 60px 0pt
3em;border:none;vertical-align:top;border-left:1px solid #000;'>
<div style='margin:0;padding:0;border:0;text-align:left;'>
<!-- end header -->



<h2 style="-x-system-font:none;border-bottom:1px dotted #CCCCCC;font-
family:'Times New Roman',Times,serif;font-size:95%;font-size-
adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:0.2em;line-
height:normal;margin:15px 0 2px;padding-bottom:2px;">
October 11, 2009 </h2>
<h3 style="color:#000000;border-bottom:1px dotted #EEEEEE;font-
family:'Times New Roman',Times,serif;margin-top:0;">
<a href="http://www.wandererllc.com/wp_swiconline/?p=386"
rel="bookmark" title="Permanent Link to New Post" style="text-
decoration:none;color:#342;" onmouseover="this.style.color='#9a8';"
onmouseout="this.style.color='#342';">
New Post </a>
</h3>
<div style="-x-system-font:none;font-family:'Lucida Grande','Lucida
Sans Unicode',Verdana,sans-serif;font-size:90%;font-size-
adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;letter-spacing:-1px;line-height:
175%;">
<p>
<br/><br/>
</p>
</div>


<!-- start footer -->
</div>
</td>
<td></td>
</tr>



<tr style='margin:0;padding:0;height:19px;'>
<td style='margin:10px 0pt 0pt;padding:3px;background:#90A090
none repeat scroll 0%;border-top:3px double #AABBAA;letter-
spacing:-1px;line-height:175%;text-align:center;color:#fff;font-size:
11px;font-size-adjust:none;font-stretch:normal;font-style:normal;font-
variant:normal;font-weight:normal;font-family:Verdana,sans-
serif;border-left:1px solid #000;border-bottom:1px solid #000;border-
left:1px solid #000;'>
<cite style='margin:0;padding:0;font-size:90%;font-
style:normal;'>
This mail is brought to you by
<a style='margin:0;padding:0;color:#000;' href='http://
andrerenaut.ovh.org/wp/?page_id=70'
onmouseover="this.style.color='#fff';"
onmouseout="this.style.color='#000';">
<strong style='margin:0;padding:0;border:none;'>
MailPress
</strong>
</a>
</cite>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td></td>
</tr>
</tbody>
</table>
</div>
<small style='color:#c0c0c0;font-family:Times,serif;font-size:
80%;font-size-adjust:none;font-stretch:normal;font-style:italic;font-
variant:normal;font-weight:normal;letter-spacing:0.1em;line-
height:normal;'>
<br />
<br />
Wish to unsubscribe <a href='http://www.wandererllc.com/
wp_swiconline/?page_id=2&del=fd06bbc1884a8f3fc52b82126ed7ffc8'
style='color:#c0c0c0;font-family:Times,serif;font-size:110%;font-size-
adjust:none;font-stretch:normal;font-style:italic;font-
variant:normal;font-weight:bold;letter-spacing:0.1em;line-
height:normal;'>?</a>
</small>
</div>
</body>
</html>

------------------ end of mail ------------------


2009-10-11 10:18:39 000000 -- **** Empty user/password for SMTP
connection ****
2009-10-11 10:18:39 000000 -- Disconnecting from wanderer_wrdp8
(MP_Mail)
2009-10-11 10:18:39 000000 -- Disconnected (MP_Mail)
2009-10-11 10:18:39 000000 -- Connecting to wanderer_wrdp8 (MP_Mail)
2009-10-11 10:18:39 000000 -- Connected (MP_Mail)
2009-10-11 10:18:39 000000 -- :::: MAIL SAVED ::::
2009-10-11 10:18:39 000000 -- LOG ended with status : TRUE
2009-10-11 10:18:39 000000 -- **** End logging **** mailpress ***
MP_Mail *** level : 8191


=========
END LOG

On Oct 10, 9:19 pm, andré renaut <andre.ren...@gmail.com> wrote:
> set logging level to E_ALL
>
> and do a test again
>
> 2009/10/10 Valerama <vcud...@gmail.com>

andré renaut

unread,
Oct 11, 2009, 8:27:34 AM10/11/09
to mail...@googlegroups.com
Wordpress themes are not compatible with MailPress themes ...

http://www.mailpress.org/wiki/index.php?title=Manual:Theme:Development

2009/10/11 Der Wanderer <the...@gmail.com>

Valerama

unread,
Oct 11, 2009, 6:59:25 PM10/11/09
to MailPress
Can't tell what's going on from this sample, the output above doesn't
include anything but the permalink to the post.
> Html version of this mail ->http://www.wandererllc.com/wp_swiconline/?page_id=2&view=fd06bbc1884a...
>
>                                 this mail is brought to you by MailPress .
>
> Unsubscribe ? ->http://www.wandererllc.com/wp_swiconline/?page_id=2&del=fd06bbc1884a8...

Der Wanderer

unread,
Oct 12, 2009, 5:04:44 AM10/12/09
to MailPress
Hi Valerama,

Yep, that's exactly what I'm seeing in the emails. From the Edit Post
page, that's the result I get. Creating and sending a mail from the
"New Mail" page in MailPress works fine.

Hi Andre,

It's impossible not to have a Mailpress or a WordPress theme, isn't
it? Seems there's no way around this one.

Thanks,
DW
> ...
>
> read more »

andré renaut

unread,
Oct 12, 2009, 6:01:53 AM10/12/09
to mail...@googlegroups.com

Valerama

unread,
Oct 12, 2009, 9:58:58 AM10/12/09
to MailPress
Check your MP theme's file: post.php. Is it calling all of the
following?

the_title()
the_permalink()
the_time()
the_excerpt_rss()

If those are all good, check your single.php file and verify that it's
calling : <?php include($this->build->dir . 'post.php'); ?>

(Once you understand the structure of the templates, it's very easy to
build one that matches your website.)
> ...
>
> read more »

Der Wanderer

unread,
Oct 13, 2009, 4:04:06 AM10/13/09
to MailPress
OK, I'll look into that. Thank you all.
> ...
>
> read more »
Reply all
Reply to author
Forward
0 new messages