Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ It is quite easy to add attachments, we need :class:`Attachment` instance::

from sender import Attachment

with open("logo.jpg") as f:
with open("logo.jpg", "rb") as f:
attachment = Attachment("logo.jpg", "image/jpeg", f.read())

msg.attach(attachment)
Expand Down