Skip to content
This repository was archived by the owner on Jan 31, 2025. It is now read-only.

Conversation

s8w1e2ep
Copy link
Collaborator

I modify number of parameter of send function to definitely express intent in mail interface. Let people easy understand how to use send function.

@iankuan
Copy link
Contributor

iankuan commented Dec 23, 2017

@s8w1e2ep , please implement the unittests. It makes reviews of progress more efficient.

@iankuan iankuan self-requested a review December 23, 2017 03:06
for filePath in attachments:
try:
with open(filePath, 'rb') as fp:
file = MIMEBase('application', 'octet-stream')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain why you put the hardcode here?

file.set_payload(fp.read())

encoders.encode_base64(file)
file.add_header('Content-Disposition', 'attachment',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants