Keywords: SMTP, mail announcements, Python, tkinter, file attachments, HTML, command line, argparse, JSON
Objective of this project is to develop a tool to send mail announcements using mail templates. Text data values, configured signatures and file attachments are merged into predeclared email text templates. Placeholders are used in the templates and will be substituted by up-to-date values on demand. These get sent out as SMTP based HTML emails. A group of users is to be configured to control the Python/tkinter application or alternatively a command line version.
- controlannouncement.py will start the Python/tkinter User Experience.
- announcement.py holds the announcement SMTP based library with a simplified command line startup.
- announcementconfig.py will allow to adapt JSON objects for user data administration, template adaptation, and changing the values to use for substitutions into the templates, and global common settings for your scenario.
The usage of this announcement tool intends to minimize copy and paste errors unfortunately being typical if performed manually. Next the mail announcement gets a more clear structure compared to manual editing. Recognition value of such email messages is increased since manual variation is minimized to a reasonable value.
- Python.org
- Python 3 - smtplib (SMTP protocol client)
- RFC821 - SMTP (Simple Mail Transfer Protocol), August 1982
- RFC2821 - SMTP (Simple Mail Transfer Protocol), April 2001
- RFC1869 - SMTP Service Extensions, November 1995
- RFC5321 - ESMTP (Extented SMTP), October 2008
- JavaScript Object Notation
- ECMA-404 The JSON Data Interchange Standard
Tested using standard Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) on Windows environment.
MIT licensed, (c) Oliver Merkel
Logos and trademarks belong to their respective owners.