I would like to be able to have a configuration file with an assortment of content to be mailed out. Each email would need to contain a subject and a body, with new lines.
For example:
[Message_One]
Subject: Hey there
Body: This is a test
How are you?
Blah blah blah
Sincerely,
SOS
[Message_Two]
Subject: Goodbye
Body: This is not a test
No one cares
Foo bar foo bar foo bar
Regards
How would I get this to work with Python as a config file to randomly select between the content and/or grab one by it’s defined name (Message_One, Message_Two)?
Thanks
1 Answer