Home « Server software «
Documentation: letters/new.php
letters/new.php - Create a new letter
This script fills a form to prepare the letter, then send it by e-mail to targeted recipients.This allows for the preparation:
- of digests - YACS list published articles since the previous digest
- of release - YACS lists featured pages
- of announcement - type any text and hit the submit button
This script builds a digest of most recent articles, and it's up to the writer to change its content based on previous sending.
Restricted pages are flagged as such in the digest. Regular members will have to login in order to read them. Note that hidden pages (i.e., accessible only to associates) are not listed in the digest.
This newsletter can be sent either:
- to all subscribers of the community who have explicitly subscribed for this service,
- to all members of the community who have explicitly subscribed for this service,
- to all associates,
- or to any custom address typed manually
Note that once a letter has been sent it becomes a standard article in the 'letters' section, and can be edited via usual tools for articles.
Long lines of the message are wrapped according to Dan's suggestion.
Messages are sent using utf-8, and are base64-encoded.
This page can only be used by associates.
If the file
demo.flag
exists, the script assumes that this instance
of YACS runs in demonstration mode, and no message is actually posted.The edition time is not limited at all. Some Javascript code polls the server in the background to ensure that session data is not lost during all the time the browser window is opened.
This script is a reference file of this system.
Voir aussi:
Licence: GNU Lesser General Public License
Auteurs:
- Bernard Paques bernard.paques@bigfoot.com
Testeurs:
- Guillaume Perez
- Jan Boen
Reste à faire:
- allow to create a newsletter from a section or sub-section (Jan)
- allow for customizable templates (Jan)
- allow for pre-defined lists of recipients (Jan)
- automate the process (Jan)
- help: explain that one message will be sent per recipient
- allow for embedded images http://java.sun.com/developer/...004/tt0625.html#1
- allow for embedded images http://java.sun.com/developer/...004/tt0625.html#1