Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2008-01-17 19:51:22

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

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

Colak,

I have spaces between my list names. Have you tried it with spaces, and it’s not working? Or was the documentation unclear?

  • Ben

Offline

#26 2008-01-18 07:04:08

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

Ben, i seem to remember (maybe wrongly) that the previous version of the plugin allowed a subscriber to belong to multiple lists but those had to be comma separated without a space…

So what you are saying is that i got it wrong and the lists should/could be space separated?

>Edit damn typos!!!

Last edited by colak (2008-01-18 14:12:34)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Online

#27 2008-01-18 17:07:36

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

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

Colak,

Give it a shot. The list field doesn’t care what the terms are separated with — it just searches for the text (the list name you’ve selected from the Write tab).

  • Ben

Offline

#28 2008-01-18 18:58:13

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

benbruce wrote:

Give it a shot. The list field doesn’t care what the terms are separated with — it just searches for the text (the list name you’ve selected from the Write tab).

I will do that, especially after textdrive decides succeeds to in booting the server.

Last edited by colak (2008-01-18 19:16:01)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Online

#29 2008-01-19 06:24:41

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

Ben, I got this after sending out a test email in debugging mode:

Notice: Undefined variable: uPosted in /home/example/public_html/textpattern/publish.php on line 843

Warning: extract() [function.extract]: First argument should be an array in /home/example/public_html/textpattern/lib/txplib_misc.php(552) : eval()'d code on line 511

Notice: Undefined variable: listSubjectLine in /home/example/public_html/textpattern/lib/txplib_misc.php(552) : eval()'d code on line 513

Notice: Undefined variable: listName in /home/example/public_html/textpattern/lib/txplib_misc.php(552) : eval()'d code on line 517

Notice: Undefined variable: listAdminEmail in /home/example/public_html/textpattern/lib/txplib_misc.php(552) : eval()'d code on line 522

Notice: Undefined variable: listAdminEmail in /home/example/public_html/textpattern/lib/txplib_misc.php(552) : eval()'d code on line 523

Notice: Undefined variable: listEmailForm in /home/example/public_html/textpattern/lib/txplib_misc.php(552) : eval()'d code on line 537

Notice: Undefined variable: thisarticle in /home/example/public_html/textpattern/lib/txplib_misc.php(552) : eval()'d code on line 552

All of those fields are filled in on the list details too. Another thing is the list claims to be sending to all the subscribers (eg. “104 done”). Doesn’t seem to though, which would be a good thing (newsletter not complete – using a dev list).

Export errors

I just noticed this – I exported a list of subscribers from a site I updated from 0.3 to 0.4 and all the fields were offset. The Name fields were filled with subscriber IDs, the email fields used names, and the name fields used email addresses.

Last edited by jm (2008-01-19 06:43:50)

Offline

#30 2008-01-21 17:30:50

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

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

I’ve released the first bug fixes here (reported by Gemal).

jm,

I think this may have something to do with the error messages you were receiving. If you are mailing HTML emails, it should also be the reason the emails were not actually making it to subscribers.

re: the export/import function. Earlier in the thread you mentioned they were working great — was that on a different site, or had you simply not noticed the transcription error yet? Also, you shouldn’t have to export/import to move from 0.3 to 0.4 at all. Just upload the new version of the plugin and it should recognize the database table no problem. Let me know what you can about the import/export error and I’ll take another look. I expect if it’s a bug (and it sure seems like it) it won’t be too hard to find and fix.

  • Ben

Offline

#31 2008-01-21 19:07:29

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

benbruce wrote:

re: the export/import function. Earlier in the thread you mentioned they were working great — was that on a different site, or had you simply not noticed the transcription error yet?

I hadn’t noticed the error after importing for a bit – I got caught up learning ’90s web design for HTML emails. I did an export and import because the site I was working on needed to be moved to a new host, and the client didn’t have any login access (MySQL or FTP). I installed the updated plugin and exported as a CSV. This is a sample of the output (emails and names changed) – I can send you the whole file if you want:

6,Example name,mail@example.com.com,default,,,,,,,,,,,,mailed,561ca8889f64aeff8590d90f6aa565b0
108,Another example,someone@example.com,default,,,,,,,,,,,,mailed,728fad73db4bd9724c71135b71a3c3c9

Edit: I’m only getting a couple errors with 0.4.1:

Notice: Undefined variable: uPosted in /home/example/public_html/hnn/textpattern/publish.php on line 843

Notice: Undefined variable: thisarticle in /home/example/public_html/hnn/textpattern/lib/txplib_misc.php(552) : eval()’d code on line 552

Newsletter form contents:

<txp:bab_pm_mime type="text" />
<txp:title />

Last edited by jm (2008-01-21 19:39:51)

Offline

#32 2008-01-21 22:22:32

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

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

I’ve updated the download page with a new version (0.4.2) that fixes the import/export issue found by jm.

  • Ben

Offline

#33 2008-01-21 22:33:40

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

Looking at the code I think i found a bug. In the Postmaster library you have:

$end_mime = <<<end_mime
—$mime_boundary
end_mime;

I think this should be:

$end_mime = <<<end_mime
—$mime_boundary—
end_mime;

My mailserver conplains about:
X-Amavis-Alert: BAD HEADER, MIME error: error: part did not end with expected boundary

Looking at the RFC 1521 it says:
“The encapsulation boundary following the last body part is a distinguished delimiter that indicates that no further body parts will follow. Such a delimiter is identical to the previous delimiters, with the addition of two more hyphens at the end of the line”

I think you’re missing those two hyphens at the end

Offline

#34 2008-01-21 22:42:14

gemal
Member
From: Copenhagen, Denmark
Registered: 2007-01-09
Posts: 107
Website

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

Futhermore in the postmaster library this:

$headers = “From: $listAdminEmail”. $sep.‘Reply-To: ‘.$listAdminEmail. $sep.‘X-Mailer: Textpattern/Postmaster’.

should be changed to:

$headers = “From: $listAdminEmail”. $sep.‘X-Mailer: Textpattern/Postmaster’.

No need for adding the Reply-To header since it’s the same as the From address

The code is duplicated in the Postmaster code also. So be sure to remove the line in both places :)

Offline

#35 2008-01-21 22:48:36

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

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

Thanks Gemal. Keep ‘em coming,

  • Ben

Offline

#36 2008-01-22 09:04:19

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: [ARCHIVED] Postmaster (0.4.4) -A simple newsletter manager

Hi Ben,

re my comment here

  • I found that the fields in the “Add a Subscriber” page do not recognise the enter/return key to post/save the entry but instead they change the line, like in a word processor.

Would it be because you are using

<textarea name="newSubscriberEmail" cols="40" rows="5" style="width: 440px; height: 14px;"></textarea>

instead of

<input name="newSubscriberEmail" value="" type="text" style="width: 440px; height: 14px;" />?

etc…


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Online

Board footer

Powered by FluxBB