Skip to content

Commit 6102136

Browse files
Merge pull request #604 from sendgrid/agnesjang98-patch-issue-547
Issue #547: Added comment for attachments to be base64 encoded #patch
2 parents 7221ccd + 07ed322 commit 6102136

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/helpers/mail/mail_example.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ def get_mock_personalization_dict():
8080

8181

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

0 commit comments

Comments
 (0)