Forum


Problems automated newsletter

Filip
34%
Posts: 34
TF Mail
November 22, 2022

I try to setup an automated newsletter that collects every day the new articles (if any) from a category and send it as newsletter.

I created a newsletter type automation with {JC 10 5} (so max 5 articles of category id 10 as most of the time there will be no new articles but it is also possible that there are more than 1 new articles) and I created some articles in the category. Clicking  the Process button sends the newsletter.

I created 2 scheduled tasks, each hour:

  • TF Mail: Process Queue
  • TF Mail: Send Auto Mails

And created a external cron to 'activate' the joomla scheduler

The day after I created a new article in the category but I did not get a newsletter the day after. When I test it again (process button) I get a newsletter with the new article but also the old ones.

When I examine the tasks I see that the Process Queue task runs frequently as setup but not the Send Auto mails.

What am I doing wrong?

Tech Fry
100%
Posts: 898
November 22, 2022

Hello

Send Auto Mails works on scheduled newsletter. Please check following settings under Sending Options:

  • Send Date should be in past (earlier than today).
  • Schedule should be set to Yes.

Then, under Joomla scheduled tasks, you can Run Test. The scheduled newsletter should be added to the queue.

Let me know it helps or not.

Filip
34%
Posts: 34
November 22, 2022

Send Date was in past and Schedule was set to yes.

Run test works but it doesn't send automaticly.

And it puts also the previous articles, who where already in previous newsletters, in the newsletter.

 

Greetings,

 

Filip

Filip
34%
Posts: 34
November 24, 2022

Today I noticed something.

I have configured both the lazy scheduler as the web cron for the Joomla scheduler. First I had only the web cron but then it seems to be that only the Process Queue task runs each time.

Now each time I opened the site (wich is a test site, so no normal visitors) I get a mail that the Send auto Mail task has run (as I configured it that way).

Today I also received (while I specially visited the site severall times) the automated newsletter, but again, not only with the new posted article but also the other, older, articles, who where already send before in the previous newsletters. So that is a NO-GO for me.

I hope there is a solution for that (the easy solution is that I configure the newsletter as {JC 10 1} so only 1 article but what then when there are more than 1 articles? Also, now I gone see what happens when there is no new article tomorrow, will it not send anything (I Hope) or is it gone resend the same newsletter as today, what is where I'm afraid of?

Rests also the problem of the scheduler, but that is maybe more a Joomla problem

Greetings,

 

Filip

Tech Fry
100%
Posts: 898
November 24, 2022

Hello

At present, the newsletter will include latest number of articles whether previously sent or not.

We will update the component for some option to add relative date so that only recently published articles are included. And newsletter will not be generated in case no new articles.

This feature will be implemented in around 1 week.

Filip
34%
Posts: 34
November 25, 2022

OK, thanks for that.

Already many thanks in advance.

Today I did not receive a newsletter as I did not post a new article in that category so that is already fine.

Greetings,

Filip
34%
Posts: 34
November 25, 2022

Rests the (Joomla?) problem with the task scheduler.

I can't set up an internal cron so rests the 2 other options.

When I setup the lazy planner all tasks are triggered when someone visits the site. (but that is no valid option)

So I did setup a web cron. But now it seems that only the first task (id = 1) is triggered, not the other tasks (as with the lazy planner). Is that normal?

I found out that you can also add an id to the web cron url but that seems (for me) not the 'normal' way to go. Then you must always think also to create a cron when you add a new task.

Can someone confirm that?

Greetings,

Filip
34%
Posts: 34
November 25, 2022

Oeps, I was to quick. I did also get a newsletter today, even with no new articles posted.

 

Filip
34%
Posts: 34
December 01, 2022

Hello,

The scheduler problem seems to be in order now. All tasks runs as expected.

Rests the adaption of the newsletters so that only new articles are send automaticly. Can you give me a clue how it goes with that? If I can help you testing, please let it know.

As a little compensation I payed for the premium membership.

 

Greetings,

Tech Fry
100%
Posts: 898
December 01, 2022

Thank you for the premium membership!

We are working on integrating this feature (and some other improvements too). The new version will be released in 2 to 3 days.

Filip
34%
Posts: 34
December 06, 2022

I updated to the new version (2.9.1) and now it did not repeat the 'old' articles, but it still sends an empty newsletter (with only the fixed heading and footer). When there are no new articles, it should not send anything.

Or did I miss an option to set somewhere?

I only found a new option Latest Articles (Days) wich was set to 365 days.

Thanks in advance,

Filip

 

Tech Fry
100%
Posts: 898
December 06, 2022

Hello

Latest Articles (Days) setting filters the articles based on published date. For example, if you set to 7, then only articles published in last 7 days or 1 week will be included.

You can match this number with frequency in automation newsletter. If you set 7 here, then newsletter will be sent every 7 days or 1 week.

However, If no article is published, then also it will send newsletter. This feature of not sending newsletter when no articles are published will be released in next update, in around 1 week.

Filip
34%
Posts: 34
December 08, 2022

Yesterday I posted a new article in the category but today I did receive an new empty newsletter.

When I updated the new version I didn't change any parameter so then the Latest articles (Days) option was set to 365 but already then I received an empty newsletter.

After your latest reply here I changed it to 1 day, but it seems to have a problem with it.

 

Filip
34%
Posts: 34
December 10, 2022

Once again I get an empty Newsletter even when I posted a new article to test.

As you have the list with the send Newsletters (in Statistics) can't you use the last send date of the newsletter to check wich articles come in the new newsletter (publish date > last send date)?

Greetings,

 

Filip

 

 

Tech Fry
100%
Posts: 898
December 11, 2022

If articles are published, it should not send empty newsletter.

Can you share Joomla admin details to mail@techfry.com.

I will look into this further. 

Login to Reply