Send e-mails on birthdays. Frontend in php. Mailer in python. Multi part messages are supported (and enabled).
- Create a file
birthday_settings.py
in the foldermailer
and specify the following settings:
c_config_id = <id of the config you would like to use>
birthday_db=<db filename>
real_from_address=<email address of this host, could be useful if you are not permitted to send as just any email address>
- Create a folder
files
inmailer
and put the picture you would like to add to the email in here. - Create the database and the tables:
$ sqlite3 birthday.db < schema.sql
- Set the config and the users using the web configuration or by hand using
sqlite3 birthday.db
and then typing some queries 😀 or using https://sqlitebrowser.org/ - Put the mailer (
mailer/birthdaymailer.py
) in a cronjob and run it every day.