lavr/python-emails ? reverse-engineered prompt
Reverse engineered prompt
Build me a Python library for creating and sending emails without having to hand craft MIME messages.
I want to be able to make HTML and plain text emails in one object, add attachments and inline images, render templates in the subject, text, and HTML, and then send the message through SMTP with TLS or SSL. It should also support optional HTML cleanup like CSS inlining and image embedding, plus DKIM signing for outgoing mail. Please include support for loading email content from files, URLs, folders, ZIP archives, and raw email messages, and make it easy to use with Django too.
Keep the public API simple and friendly, something like creating a message, attaching files, transforming the HTML if needed, and sending it with a small config object. If there are any current best practice details for email handling, look them up online if needed.
Are you gonna build this?
make sure you review the code using arcumet