Created
January 13, 2019 02:16
-
-
Save xtornasol512/36390375374b286b6e2b0de0241fb9c9 to your computer and use it in GitHub Desktop.
Amazon Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Send a file by email with S3 | |
message = EmailMessage(subject, body, from_email, bcc=recipient_list) | |
message.attach(FILENAME, mymodel.myfilefield.read()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment