Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#325 2020-12-22 20:22:51

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,568
Website GitHub

Re: mem_postmaster - Postmaster Revamp

I’ve taken a stab at modernising mem_postmaster in my official unofficial fork. Things this is NOT:

  • A brand new thing. It is just some band-aid to get it working on newer (Txp 4.7+) installations.
  • Long-term supported. I’ll get it to a point where it works and patch a few bugs here and there but I’m not intending to grow features. For that, its completely new spin-off smd_newsletter will take over.

But things this IS:

  • More robust – fewer runtime errors/warnings. Fewer (hopefully no) installation errors. Although PHP 8 might throw a curveball here.
  • Able to send HTML email, although currently I misinterpreted how it worked and introduced a different way of working via parallel forms. I need to back-fill this with <txp:bab_pm_mime> after Yiannis kindly showed me how it was supposed to be used (thank you).
  • Able to send mail via PHPMailer if you add it to your /textpattern/vendors directory. It’ll automatically pick it up and use it to send mail internally via mail(). In a few commits’ time it’ll be able to also route mail via a third party SMTP server if you define a few hidden prefs containing the credentials. More info will be forthcoming on that.
  • Able to integrate with other plugins/modules to offer additional functionality, such as different encoding/filtering of prepared content prior to mailing out. There’s a callback (name not finalised yet) that enables this facility.

No compiled plugin is available yet but the code is freely available on GitHub and can be copied and pasted over your existing mem_postmaster, providing your plugin is of type 5. Change it in phpMyAdmin if necessary. And backup first!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#326 2020-12-23 04:59:55

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,776
Website GitHub Twitter

Re: mem_postmaster - Postmaster Revamp

Hi Stef, Thanks so much for adopting this plugin. I’ll. be testing it and report back on this thread.


Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.

Offline

#327 2020-12-26 09:18:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,776
Website GitHub Twitter

Re: mem_postmaster - Postmaster Revamp

Hi Stef
I was testing your latest postmaster official unofficial fork from github. I just copied/pasted it in my existing plugin which is type 5. After saving I visited the Articles tab which returned the following error:

Parse error: syntax error, unexpected '<', expecting end of file in /path/to/neme.org/textpattern/plugins/mem_postmaster/mem_postmaster.php on line 2


Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.

Offline

#328 2020-12-26 10:04:46

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 10,568
Website GitHub

Re: mem_postmaster - Postmaster Revamp

Did you copy/paste the entire.php file in? If copying it, only grab the chunk between BEGIN and END PLUGIN CODE markers.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#329 2020-12-26 10:58:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,776
Website GitHub Twitter

Re: mem_postmaster - Postmaster Revamp

Bloke wrote #327865:

Did you copy/paste the entire.php file in? If copying it, only grab the chunk between BEGIN and END PLUGIN CODE markers.

That stops the particular error but the emails sent have big issues

  1. They are totally unformatted; textile, txp, and html tags are not parsed
  2. they are ignoring the from email field set by postmaster.
  3. images are not embedded
  4. there is a problem with non Latin characters. Here is a snippet of what I received in my test mail.

&Tau;&eta;&nu; &Pi;&alpha;&rho;&alpha;&sigma;&kappa;&epsilon;&upsilon;&#942; 6 &Nu;&omicron;&epsilon;&mu;&beta;&rho;&#943;&omicron;&upsilon;, &sigma;&tau;&iota;&sigmaf; 7:30 &mu;.&mu;., to NeMe &#941;&chi;&epsilon;&iota; &tau;&eta; &mu;&epsilon;&gamma;&#940;&lambda;&eta; &chi;&alpha;&rho;&#940; &nu;&alpha; &sigma;&alpha;&sigmaf;

I can forward you one to see what they look like and another one to see how it should have looked.


Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB