Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-11-02 20:21:22

gilibaus
Member
From: Milan, Italy
Registered: 2013-08-14
Posts: 67
Website

Email on post

I am looking for a plugin that sends emails when a post gets published. Stop. Postmaster or anything like that is too heavy, I do not need to collect emails or whatsoever. I just need something as simple as wyn_email_publish, which unfortunately is too old and does not work properly on my 4.5.7 installation. Any suggestions? Thanks.

Offline

#2 2015-11-02 21:10:01

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,207

Re: Email on post

Hm, don’t know a thing about sde_newsletter except for I have a bookmark for it saved and it’s last update was January 2013 so might still be working (download from here, the forum links to an outdated version though it says it’s the current one).


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#3 2015-11-02 21:46:32

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 2,604

Re: Email on post

Perhaps use IFTTT with an RSS/Atom feed?

Offline

#4 2015-11-03 08:31:09

gilibaus
Member
From: Milan, Italy
Registered: 2013-08-14
Posts: 67
Website

Re: Email on post

I have actually moved away from the idea of installing a new plugin. Unfortunately sde_newsletter does not do what I need (manual sending only) and all the other ones either are oversized or have some issues with the latest Txp version. Thanks to gaekwad suggestion, I am exploring MailChimp’s RSS-to-email service and it seems a perfect fit for the job. Thanks to both of you.

Offline

#5 2015-11-03 12:47:42

ToK
Plugin Author
Registered: 2014-02-18
Posts: 23

Re: Email on post

gilibaus wrote #296406:

I have actually moved away from the idea of installing a new plugin.

Wow — you are fast (or without hope). I think I have the plugin you are looking for. I’m using it for years now, but it still was unpublished until now. You might have a look at “tok_mailalert”, which I put in my github repository

Offline

#6 2015-11-03 17:39:51

gilibaus
Member
From: Milan, Italy
Registered: 2013-08-14
Posts: 67
Website

Re: Email on post

ToK wrote #296407:

Wow — you are fast (or without hope).

You name it, no more hope :) Actually the RSS + Mailchimp solution works like a charm and I am fine with it. I have nonetheless given a try to your plugin. It’s ok but I have found two issues with my Txp 4.5.7 installation:

1. FROM header gets overwritten by something like Alessandro@w-01.th.seeweb.it (I guess it depends on my hosting provider server settings)

2. when I activate the plugin, in the Write tab there appear TWO status boxes on top of the Alert Mail box.

Hope it helps.

Offline

#7 2015-11-03 18:18:10

ToK
Plugin Author
Registered: 2014-02-18
Posts: 23

Re: Email on post

gilibaus wrote #296411:

I have found two issues

Ah, OK. Thank you. I will take a look.

Offline

#8 2018-12-18 10:43:44

demoncleaner
Plugin Author
From: Germany
Registered: 2008-06-29
Posts: 72
Website

Re: Email on post

Is there a way to not just post a link to the new published article, but the article <txp:body/> itself?
Apart from that Torstens Plugin is exactly what I am looking for. Or would somebody have a working download link for sde_newsletter for me?

Last edited by demoncleaner (2018-12-18 10:44:07)

Offline

#9 2018-12-18 11:18:17

demoncleaner
Plugin Author
From: Germany
Registered: 2008-06-29
Posts: 72
Website

Re: Email on post

Ok I just found out, that on tok_mailalert you have far more options than those that are mentioned in the help. For example you can also use <%postingBody%> to have the body of the article appearing in the Email. That was exactly what I was looking for. Pretty cool. Thanks Torsten.

Offline

#10 2018-12-18 11:26:38

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 3,554
Website

Re: Email on post

demoncleaner wrote #315611:

Is there a way to not just post a link to the new published article, but the article <txp:body/> itself?

It looks like you can adapt Torsten’s plugin to do that! The default language strings from the plugin (detailed here in the plugin code) use just the site url link but the plugin does actually already provide some other replacement values. These are the text strings that need editing:

#@admin
#@language de-de
tok_mailalert_conf_val_mailsubject => Ein neues Posting wurde veröffentlicht
tok_mailalert_conf_val_mailbody => Hallo!\r\rBitte besuche alsbald\r\r<%siteurl%>\r\rViele Grüße\r<%userName%>

and you can use the following drop-in values with it (detailed here in the plugin code):

<%userId%>, <%userName%>, <%siteurl%>, <%postingTitle%>, <%postingExcerpt%>, <%postingBody%>, <%postingSection%> and \r for a carriage return.

Now, with tok_mailalert already installed:

  • Prepare your own text strings in the pattern shown above (using a different language code if not using German).
  • Switch to the Admin > Languages tab and enter the above code into the Insert Textpack box. That should replace the email subject and email content.

Test before using to check it works :-)


TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB