Automatic newsletter?
Is it possible to automaticaly generate and send newsletters?
I would like to run an automated (weekly / bi-weekly) newsletter.
This should only contain information about the submissions/updates that came after the last newsletter.
Can this be done?
If yes how.
We're running YACS on LIXUX based systems
This should only contain information about the submissions/updates that came after the last newsletter.
We're running YACS on LIXUX based systems
Fernand![]() from Paris 1288 posts | Hello Jan: I am not sure that you can now automaticaly generate and send newsletters with a pre choice of the dates. (See How to send a newsletter) This is an excellent suggestion to submit to Bernard. I thought he would have answered to you sooner but it sounds that as he was travelling far away, he did not get a connexion in due time. This is the reason of my late answer. Anyway he will read this post at last, and answer to you. As a calendar will be introduced in the next version maybe the automatic sending of newsletter could be connected to it. I don't know yet. Otherwise the sending of newsletter is very easy. Did you already practice it? I am too running YACS from a Linux basis Best regards |
Jan B![]() 85 posts |
Fernand: Hello Fernand, Yes I have already used the newsletter feature. Except not being able to automate the sending of newsletter I also find that "older" articles keep on reappearing in the generated newsletters. Best regards Jan |
| Bernard from nearby-an-airport Associate, 6796 posts | Jan: currently the newsletter featured by YACS is fully manual, and it barely lists the 25 most recent articles. Now that we have a table to store scalar values we could change the script to remember the id of the last article listed. This would help to avoid duplicates in successive newsletters. Would you like to implement this by yourself? |
Jan B![]() 85 posts |
Bernard: Yes why not
Tell me what to do and I'll give it a try.
Simplest would be to record the date stamp when a newsletter is sent so that this can be used as a starting point.
If we could then add the possibility to either add the last "n" articles that where posted before the date stamp we could have a small overlap (variable in number of days or number of articles).What do you think? Would it be an idea to create a cron job that would execute every "n" days to automatically generate a newsletter and then send it to the registered users/members or associates? |
| Bernard from nearby-an-airport Associate, 6796 posts |
Jan B: YACS version 6.4 has a module specifically designed to store scalar values. Look comments of shared/values.php to get an idea. Also, a function will have to be added to articles/articles.php to list articles published after some date. Then, you will be able to change letters/new.php to combine everything. My two cents... |
Jan B![]() 85 posts | Hello, Has anything changed since? If not I will start working on this with the info as received. Jan |
| Bernard from nearby-an-airport Associate, 6796 posts |
Jan B: Yes, things have changed, since YACS 6.10 is supposed to remember the date of the last article listed in a newsletter, to avoid repetitions on the next newsletter. This has not been tested however, and you know that it means potentially some bug to fix. Do not hesitate to report to us on your tests... |
Jan B![]() 85 posts |
Bernard: First test is positive. Tried to create 2 newsletters. First one was a long one with all articles. The second one was empty as no new articles had been published since the first newsletter. |
| Bernard from nearby-an-airport Associate, 6796 posts |
Jan B: Thanks for the positive feed-back |
Rate this page
Posted by Jan B on May 23 2006, commented by Bernard on May 23 2006, (popular)


Tell me what to do and I'll give it a try.
Simplest would be to record the date stamp when a newsletter is sent so that this can be used as a starting point.
If we could then add the possibility to either add the last "n" articles that where posted before the date stamp we could have a small overlap (variable in number of days or number of articles).