Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify number of parameter of send function to definitely express intent #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

@yan-kuan
Copy link
Member

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

@yan-kuan yan-kuan 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
Member

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
Member

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants