secret-santa/config.py

23 lines
747 B
Python
Raw Permalink Normal View History

2023-12-01 15:36:40 +00:00
class Config(object):
# SMTP Configuration
SERVER = 'smtp.gmail.com' # Uses GMail SMTP by default
PORT = 465 # Default GMail SSL SMTP port
# Customisation
GROUP = '' # Group/Organisation Name
2023-12-01 16:01:16 +00:00
EMAIL_DOMAIN = '' # Email domain for organisation
2023-12-01 15:36:40 +00:00
SUBJECT = f'{GROUP} Secret Santa Draw' if GROUP else 'Secret Santa Draw' # Email subject line
GREETING = 'Ho Ho Ho' # Email greeting
SENDER = 'The Secret Santa Elf' # Email sign-off
# App Configs
DATA = './data.json' # Data file
OUTPUT = './output.json' # Output file
class Test(Config):
# Test Config
OVERRIDE_RECIPIENT = True # Override the recipient for all emails
RECIPIENT_EMAIL = '' # Test email address to receive all outgoing email