Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#421 2007-11-15 20:54:53

facho
Member
Registered: 2007-04-15
Posts: 64

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

I’m having a really hard time styling things in a form for the newsletter mails. All I want to do is throw things into a table and change the font size. However, whenever I add XHTML (Valid) to the form, it does not spit out the right styling in the mail. Anyone have any luck accomplishing that? Can you share your code snippets?

Offline

#422 2007-11-16 04:46:55

facho
Member
Registered: 2007-04-15
Posts: 64

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Shouldn’t this send a mail all contained within a 200px (width/intentionally small or testing purposes) table? Instead, I get it stretching across the entire frame of the window.

<txp:bab_pm_mime type=“html” />
<table>
<td style=“width: 200px”>

<txp:bab_pm_data display=“article_image” />

<br />

<h2><strong><txp:bab_pm_data display=“title”/></strong></h2>

<txp:bab_pm_data display=“body_html”/>

</td>
</table>

Offline

#423 2007-11-19 06:43:09

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Meant to post back earlier; following one of Ben’s responses upthread, I did manage to implement styles, thus for example, in my mail form:

warning text 
<txp:bab_pm_mime />
<txp:bab_pm_mime type="text" />
<txp:bab_pm_data display="body" />


<txp:site_url>mysite.com</txp:site_url>

If you want to remove yourself from the mailing list, you can unsubscribe: http://mysite.com/unsubscribe

<txp:bab_pm_mime type=“html” />

<style type=“text/css”>
body {
background-color: #fff;
margin: 0;
padding: 0;
}
#left {
background: url(“http://mysite.com/images/6.gif”) no-repeat top left;
background-color: #fff;
color: #333;
font-family: Arial, Helvetica, Verdana, sans-serif;
font-size: 1em;
line-height: 130%;
width: 50%;
height: auto;
border: solid 10px #333;
}
p {
margin-bottom: 15px;
}
a {
text-decoration: none;
color: #999;
}
a:link {
color: #7a3017;
}
a:visited {
color: #666;
}
a:hover {
color: #c84f27;
border-bottom: solid 1px #c84f27;
}
a:active {
color: #c84f27;
border-bottom: solid 1px #c84f27;
}
</style>

<div id=“left”>

<txp:bab_pm_data display=“body_html” />
<p><a href=“http://mysite.com/”>mysite.com</a></p>
<p>(If you want to remove yourself from the mailing list, you can <a href=“http://mysite.com/unsubscribe”>unsubscribe</a>.)</p>
</div>

Last edited by ferenczi (2007-11-19 06:54:43)

Offline

#424 2007-11-19 06:49:45

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

I’d like to pursue something first mentioned by, I think, maniqui (and one other person): the possibility of a user ticking a box to subscribe to a newsletter. I’ve run into the issue mentioned here

benbruce wrote:

maniqui,

I think I went through the same headbanging when I was first trying to find a solution to the “subscription and/or subscribe form” — the difference lies in the fact that an HTML checkbox will not post any information if it isn’t checked. Weird. There was no easy solution to that, that I could come up with, which is why I went with the dropdown menu as a solution.

But surely there must be a solution? I started looking at sites randomly, and came across this beautiful site designed by Dale, which is exactly the solution I’m looking for. I tried to get a sense of how he did it and tried to implement it, but I’m getting the same result: users are subscribed whether they tick the box or not. Perhaps I’ll write to Dale directly asking him how he did it; in the meantime, anyone else have success or any ideas on how to do it?

Last edited by ferenczi (2007-11-19 06:52:12)

Offline

#425 2007-12-14 19:07:47

Austin
Member
Registered: 2006-06-13
Posts: 19

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

I love this plugin, but I’m having trouble getting any html to work in my emails. I am not very experienced, so bear with me. Whenever I use the mime command, something simple like:
<txp:bab_pm_mime type=“html” />
<txp:bab_pm_data display=“body_html” />
the emails arrive, but are empty. If I don’t use the mime line, the html is all printed as text. I’ve tried it on lots of different email programs.

I went through the forum, but couldn’t find an answer. Sorry if this is something stupid… thanks.

Offline

#426 2007-12-14 20:13:45

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Austin, I’m not sure if this is helpful or not, but you do have to supply the email reader both parts … ie, if you are literally only including those two lines in your email form, it won’t necessarily know what to do with it. Have you tried something like the second example (in red text) on this page?

  • Ben

Offline

#427 2007-12-17 14:17:29

Austin
Member
Registered: 2006-06-13
Posts: 19

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Ben, Thanks for the response. Yes, I’ve tried the two-part mime example you suggested, but it still outputs a blank email to various email accounts.

Offline

#428 2007-12-19 16:16:59

mlarino2
Member
Registered: 2007-07-12
Posts: 30

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

HI,
I installed this plugin a wile back but didnt really see all the things I could do with it.
Its great! thanks for making this!.

I am having 2 little problems:
-problem 1: (edited)
I found on the forum that other people have the same problem with the sent message.
It works if I delete the cache in FF2 on a PC.

-problem 2:
Another problem I am having, is sending HTML emails, I read your tutorials and tried using the examples you provide, but only the text emails work, when I use:

Here is a text warning.

<txp:bab_pm_mime type=“text” />

Here is the text version.

<txp:bab_pm_mime type=“html” />

Here is the HTML version.

<txp:bab_pm_mime type=“end” />

I get a blank email, I dont even see the text part of that email sent.

I am not sure if that goes in the boy of the article or in a form.

I am trying to send out emails newsletters like this ( http://www.peepshow.org.uk/newsletters/index.php?newsletter_id=20 ) but dont really know how would I start.

Do I have to write all the html and CSS inside the article body? or in a form?

It would be great if in the tutorial you could make a really simple html email with images so we could understand this better.

Can someone help me with this?

THANKS!!!

Last edited by mlarino2 (2007-12-19 16:48:50)

Offline

#429 2007-12-19 17:47:30

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Austin,

Did you go through the tutorial and make sure that everything is working (without bothering about HTML yet)? This is to make sure that the plugin is working properly, and that you CAN send emails through it. Let me know if you were able to go through the tutorial and send a text email without trouble.

  • Ben

Offline

#430 2007-12-19 17:56:03

mlarino2
Member
Registered: 2007-07-12
Posts: 30

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Hi Ben,
Yes, Text email works fine, when ever I write something on the Body using this form:

===============
= TEXT NEWSLETTER =
===============

Dear <txp:bab_pm_data display=“name” />,

A new post has been entered at <txp:site_url />.

Excerpt: <txp:bab_pm_data display=“body” />

Link to article: <txp:bab_pm_data display=“link” />

===============

<txp:bab_pm_unsubscribeLink type=“text” />

I get the text email perfect.

But I am not sure if I am doing something wrong testing out the HTML email.
Where would I paste the HTML code that reders the email?
I am using this templates: http://www.mailchimp.com/resources/templates/

I am not sure if thats the way PM works with html emails.

I read about this issue:
http://www.benbruce.com/postmaster/HeaderinformationinGmailemails
but still no results at all :(

Offline

#431 2007-12-19 18:03:30

mlarino2
Member
Registered: 2007-07-12
Posts: 30

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Just got it to work deleting the “<txp:bab_pm_mime type=“end” />” on gmail…

But, would that make the rest of the email readers see it differently?

Offline

#432 2007-12-19 23:18:13

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

mlarino2,

Unfortunately, there’s no “consensus” among email readers (Gmail, Hotmail, Outlook, etc) so really the only thing to do is test your solution. If you find out anything that might be useful, please post it here so others can benefit.

I’ve written a more detailed article about building multi-part mime emails with Postmaster here. Hopefully that will be of some use to folks.

*Ben

Offline

#433 2007-12-20 00:51:34

mlarino2
Member
Registered: 2007-07-12
Posts: 30

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

Hi Ben, Thanks for updating that, it explains things a little better.
But maybe I am doing something wrong, I was able to create and send HTML emails, but not in the way you are saying there.

you are using html code in the form, and then using <txp:bab_pm_data display=“body” /> to bring the data from the article you write.

When I set my form that way, all I get in my email is the HTML code as TEXT. with all the tags… etc…

What I am doing and works is, placing only this on the form:

Here is a text warning.

<txp:bab_pm_mime type=“text” />

<txp:bab_pm_data display=“excerpt” />

<txp:bab_pm_mime type=“html” />

<txp:bab_pm_data display=“body” />

———————————————————————————————
and then on the article I put all my HTML in the BODY.
and the text in the excerpt fields.

I would rather do it your way, because that way I would just have to write a new article to make the content change, and not look for the text in all the html coding.

Has someone had the same problem as I do?

Offline

#434 2007-12-21 17:19:08

benbruce
Plugin Author
Registered: 2006-01-13
Posts: 328
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

mlarino2,

I’m not sure why it makes a difference whether the HTML is in your article body, or in the form (it shouldn’t). It sounds like your Form is not being “parsed” so it’s just reading the contents as straight text, while the article body is being parsed as usual.

Just to make sure I’m reading you correctly, if you place the following in your Form …

Here is a text warning.

<txp:bab_pm_mime type=“text” />

<txp:bab_pm_data display=“excerpt” />

<txp:bab_pm_mime type=“html” />

<html>
<body>
<b><txp:bab_pm_data display=“body” /></b>
</body>
</html>

… and then place the following in your article Body …

bold

… you get in your email …

<b>bold</b>

… not …

bold

? But if you plcae the following in your Form …

Here is a text warning.

<txp:bab_pm_mime type=“text” />

<txp:bab_pm_data display=“excerpt” />

<txp:bab_pm_mime type=“html” />

<txp:bab_pm_data display=“body” />

… and then place the following in your article Body …

<html>
<body>
<b>body</b>
</body>
</html>

… you get in your email …

bold

?

I’m really not sure how you could get that result vs. everyone else who’s Forms are parsing (as far as I know). Use the workaround for now — I’m working on an updated version of this plugin and once that’s done (a few weeks, hopefully) you can reinstall and see if that makes a difference.

  • Ben

Offline

#435 2007-12-29 16:39:51

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [archived] Postmaster -- A simple email-on-post / newsletter manager

I have a really strange problem: I just realised that ever since using the plugin, only my test subscriber received emails — no one else of the subscribers. The only difference between my test subscriber (which is not the test function of the plugin but an actual subscriber I entered) is that it was the first to be entetered. It displays alongside everyone else in the subscriber list.

I thought the plugin was working fine because I (as test subscriber) received every single posting I made whereas everyone else has never seen a single e-mail.

Any ideas?

Last edited by andreas (2008-01-04 07:27:51)

Offline

Board footer

Powered by FluxBB