Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#349 2007-08-31 09:19:34
- kevinmcdougall
- Member
- Registered: 2007-02-08
- Posts: 55
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
You’re not wrong mrdale!
Nice one ben, you are a legend. Thanks very much for taking the time to do this I really appreciate it. Tackling the PHP for this from scratch was beyond me, but I should be able to get it exactly how I want it now.
Thanks again.
Offline
#350 2007-08-31 17:15:58
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
kevinmcdougal,
I did not think long and hard about this, or spend a lot of time testing it — I just made sure the database was exported to a text file. But I agree — once you’ve got that code in your PM_library, you can tweak it to fit — it could certainly use some1. Please consider posting your changes here so everyone can benefit from them.
- Ben
1 In my head, it would appear under the “Bulk” tab — rename that to something like “Import/Export” and have the link to export to a text file there.
Offline
#351 2007-08-31 17:29:00
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
Hi. Just come to chime in and say that Ben rocks.
The Postmaster manual is great, it makes me remember the old txp tags manual by Kusor, a great resource when all this begun.
Offline
#352 2007-08-31 23:49:29
- producemedia
- New Member
- Registered: 2007-02-21
- Posts: 9
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
Hi
Im getting this error:
Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 64 bytes) in /home/salmonelladubcom/www/textpattern/lib/txplib_db.php on line 247
I can send test newsletters oK but when I try and send to my main list i get the above error
can anyone help please?
Last edited by producemedia (2007-08-31 23:52:00)
Offline
#353 2007-09-01 09:00:46
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
^^ ask your webhost to increase the memory limit for PHP and/or apache processes.
Offline
#354 2007-09-01 09:09:08
- producemedia
- New Member
- Registered: 2007-02-21
- Posts: 9
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
Thanks, I will try that.
Offline
#355 2007-09-02 00:25:50
- producemedia
- New Member
- Registered: 2007-02-21
- Posts: 9
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
I fixed the issue by creating a .htaccess file with “php_value memory_limit 32m” in it.
Works fine now.
Offline
#356 2007-09-02 00:30:17
- producemedia
- New Member
- Registered: 2007-02-21
- Posts: 9
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
I now have another problem, I have created an html email and can post my article fine when im testing to one or two email addresses but when I try and post to the large subscriber list all they recieve is :
admin has posted a new article at http://www.xxxxx
Read article at: http://www.xxxx
Unsubscribe: http://xxxx
Not the full html email contents? any ideas what I am doing wrong?
Offline
#357 2007-09-03 14:59:59
- kevinmcdougall
- Member
- Registered: 2007-02-08
- Posts: 55
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
ben,
I did indeed add another tab at the end called Export which referenced the &step=export
link.
Al that was required (for my purposes anyway) was changing the following section of the plugin code:
// ---- NAVIGATION ------------------
function bab_pm_mastheadNavigation()
{
echo '<center><P class="bab_pm_hed">POSTMASTER</p>';
$layout = <<<layout
<table cellpadding="0" cellspacing="0" align="center" colspan="2"><tr>
<td class="tabdown2"><a href="?event=postmaster&step=subscriberlist" class="plain">Subscribers</a></td><td class="tabdown2"><a href="?event=postmaster&step=listlist" class="plain">Lists</a></td>
<td class="tabdown2"><a href="?event=postmaster&step=bulksub" class="plain">Bulk Subscription</a></td><td class="tabdown2"><a href="?event=postmaster&step=add" class="plain">Add</a></td>
</tr></table><Br>
<table width="600" class="bab_pm_contenttable"><tr><td valign="top">
layout;
echo $layout;
}
to this:
// ---- NAVIGATION ------------------
function bab_pm_mastheadNavigation()
{
echo '<center><P class="bab_pm_hed">POSTMASTER</p>';
$layout = <<<layout
<table cellpadding="0" cellspacing="0" align="center" colspan="2"><tr>
<td class="tabdown2"><a href="?event=postmaster&step=subscriberlist" class="plain">Subscribers</a></td><td class="tabdown2"><a href="?event=postmaster&step=listlist" class="plain">Lists</a></td>
<td class="tabdown2"><a href="?event=postmaster&step=bulksub" class="plain">Bulk Subscription</a></td><td class="tabdown2"><a href="?event=postmaster&step=add" class="plain">Add</a></td>
<td class="tabdown2"><a href="?event=postmaster&step=export" class="plain">Export</a></td>
</tr></table><br/>
<table width="600" class="bab_pm_contenttable"><tr><td valign="top">
layout;
echo $layout;
}
That said, I am having problems with the plugin.
For some reason it’s not sending the emails at all, not even the tests. And it looks like it could be something to do with our server setup, because I replicated the entire site on my TXD account and it worked perfectly from there. It looks as if the emails are being sent, I even get the confirmation message, but nothing ever arrives, and nothing mentioned in the apache logs. At one point, the page ended up continually refreshing in some kind of loop, repeatedly loading the ‘Mailing …’ page???
The site has Zem_Contact_Reborn based forms of various types elsewhere on the site, and all of these work fine, so it remains a bit of a mystery for the time being. If the plugin is using the Zem API to do the mail sending, what could be causing it to choke on Postmaster mail and not regular Zem mail?
Anyone got any ideas?
Kev
Last edited by kevinmcdougall (2007-09-03 15:11:52)
Offline
#358 2007-09-04 16:16:37
- kevinmcdougall
- Member
- Registered: 2007-02-08
- Posts: 55
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
Got this resolved at last! A primitive Perl spam filter was blocking the emails because the header contained \r’s.
Removing the \r’s from the mail header part of the plugin (for list admin test header too) as Ben suggested for overcoming the Gmail problem solved this.
Apparently, many filters will block emails which have \r’s in the header, so if anyone is having problems with their Postmster emails not arriving at the destination addresses, I recommend they give this a try first.
Kev
P.S. Ben, is there any reason for using \r\n over \n when forming the mail header? If not, might be worth dropping this from any future Postmaster release.
Last edited by kevinmcdougall (2007-09-04 16:20:56)
Offline
#359 2007-09-04 16:17:56
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
kevinmcdougall,
Does any of this seem familiar?
ZCR is just a mechanism for creating the forms, not for mailing the emails. It’s a different mail function.
- Ben
Offline
#360 2007-09-04 16:27:51
- kevinmcdougall
- Member
- Registered: 2007-02-08
- Posts: 55
Re: [archived] Postmaster -- A simple email-on-post / newsletter manager
Was familiar ben, but not any more! ;)
Thanks for replying anyway. I was clutching at straws with ZCR. I did consider spam filtering, but I reckoned that if this was the issue, it would be as likely to be rejected on the ‘good’ TXD servers as anywhere else.
thanks again
Offline