Newsletter subscribers can subscribe to and unsubscribe from the recipient lists using forms. By default, registration only takes place after confirmation of the registration via the specified e-mail address (double opt-in).
The newsletter form is already supplied with the basic project (BASE). This is also available for installation as a single application via the Weblics® portal.
You therefore already have a ready-made implementation, including newsletter management, which only requires a few individual adjustments.
As an authorized user, you make the settings for the newsletter form by editing the form page. Here you specify the recipient file(receiversFile) in which the form data should be entered when the form is filled out. You also define the fields to be filled in for the subscribers and set the key data for the registration process via the advanced form settings ( form editor module required):
If you want to add further fields to the form, the additional fields must match the columns in the newsletter distribution list (e.g. receivers.csv).
If you add a form field"Street", for example, the name of the form field must be the same as the column to be filled in the newsletter distribution list (e.g.: street).
If you want to fill in different recipient files via the form, you can, for example, offer the receiversFile form field as a selection field (select box, radio buttons, checkboxes) to fill in a different receivers-CSV depending on the selection.
In order to be able to write to different groups of recipients via a recipient file, it is also possible to use "subscriber topics"(subscriptions), which can then be specifically written to in a newsletter (see Newsletter distribution list).
By default, the subscribe-bestaetigen.php form is provided with a logging function that writes the subscription to the newsletter mailing list to a separate CSV file under /[PROJEKT]/newsletter/logs. This serves as proof of registration (e.g. due to GDPR).