Skip to content

Instantly share code, notes, and snippets.

@xtornasol512
Created January 13, 2019 02:16
Show Gist options
  • Save xtornasol512/36390375374b286b6e2b0de0241fb9c9 to your computer and use it in GitHub Desktop.
Save xtornasol512/36390375374b286b6e2b0de0241fb9c9 to your computer and use it in GitHub Desktop.
Amazon Snippets
# 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