Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#321 2018-02-28 13:50:53

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,996
Website

Re: mem_postmaster - Postmaster Revamp

About 60% of the functionality of postmaster was a hacked copy of zem_contact anyway. With com_connect, it should be simple1 to write a module that hooks into its sending workflow.

The plugin’s more open delivery platform means that subscribing to content via third party APIs is easy (see smd_mailchimp and adi_contact for examples). A postmaster module is nothing more than:

  1. An admin panel to map subscribers to subscription channels.
  2. A means of sending an article (via a link or post-processed Textile as HTML) to a subscription channel to be forwarded to subscribers.
  3. A token mechanism (which we now have baked into core and available to plugins) to manage unsubscribe requests and double opt-in.

If someone is going to put this together, it could be done for 4.7. Though we are planning to figure out configuration and delivery via third party mailing gateways in 4.8, to help minimise the chance of a domain getting blacklisted.

1 Comparatively.


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

#322 2018-02-28 17:04:06

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,469
Website

Re: mem_postmaster - Postmaster Revamp

Bloke wrote #309525:

Though we are planning to figure out configuration and delivery via third party mailing gateways in 4.8, to help minimise the chance of a domain getting blacklisted.

Do consider native support too. I’ve been using postmaster for many years and the domain is just fine, especially when you do not go over the top with the send button.


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

Offline

#323 2018-02-28 17:55:07

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,996
Website

Re: mem_postmaster - Postmaster Revamp

colak wrote #309532:

Do consider native support too. I’ve been using postmaster for many years and the domain is just fine, especially when you do not go over the top with the send button.

We already have native mail delivery built in. The SMTP would be an option so that mails get delivered by a host other than the one containing your txp installation. It won’t have anything to do with Postmaster, they’ll be set up as core prefs somehow. All we need to do is hijack our internal ‘mail’ call so that it directs it to either PHP’s mail() function or the external server of your choice with the nominated credentials.


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

#324 2018-02-28 18:35:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 8,469
Website

Re: mem_postmaster - Postmaster Revamp

Bloke wrote #309533:

We already have native mail delivery built in. The SMTP would be an option so that mails get delivered by a host other than the one containing your txp installation. It won’t have anything to do with Postmaster, they’ll be set up as core prefs somehow. All we need to do is hijack our internal ‘mail’ call so that it directs it to either PHP’s mail() function or the external server of your choice with the nominated credentials.

yummy:)


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

Offline

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

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,996
Website

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,469
Website

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,469
Website

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: 9,996
Website

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,469
Website

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