We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7221ccd + 07ed322 commit 6102136Copy full SHA for 6102136
examples/helpers/mail/mail_example.py
@@ -80,7 +80,8 @@ def get_mock_personalization_dict():
80
81
82
def build_attachment1():
83
- """Build attachment mock."""
+ """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"""
85
attachment = Attachment()
86
attachment.content = ("TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNl"
87
"Y3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12")
0 commit comments