Skip to content

Commit

Permalink
Merge pull request #604 from sendgrid/agnesjang98-patch-issue-547
Browse files Browse the repository at this point in the history
Issue #547: Added comment for attachments to be base64 encoded #patch
  • Loading branch information
thinkingserious authored Aug 16, 2018
2 parents 7221ccd + 07ed322 commit 6102136
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/helpers/mail/mail_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ def get_mock_personalization_dict():


def build_attachment1():
"""Build attachment mock."""
"""Build attachment mock. Make sure your content is base64 encoded before passing into attachment.content.
Another example: https://github.com/sendgrid/sendgrid-python/blob/master/use_cases/attachment.md"""
attachment = Attachment()
attachment.content = ("TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNl"
"Y3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12")
Expand Down

0 comments on commit 6102136

Please sign in to comment.