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

Origin/seamless/new emails #219

Merged
merged 12 commits into from
May 5, 2018
Merged

Origin/seamless/new emails #219

merged 12 commits into from
May 5, 2018

Conversation

KaitlynKeil
Copy link
Contributor

Switched to EmailMessage API
Removed unused functions

@KaitlynKeil KaitlynKeil requested a review from osteele May 3, 2018 20:55
""".format(sent_from, to, subject, body)

send_email(server, email_text, sent_from, to)
email_text = f"""{body}
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to email_text = body, unless you need the newline in which case = body + '\n'. Or, eliminate email_text altogether, and set msg.set_content(body) below.

msg.set_content(email_text)
server.send_message(msg)
server.close()
# send_email(server, email_text, sent_from, to)
Copy link
Contributor

Choose a reason for hiding this comment

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

delete this line

Copy link
Contributor

@osteele osteele left a comment

Choose a reason for hiding this comment

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

👍

@osteele
Copy link
Contributor

osteele commented May 3, 2018

But note �failed CI build abe/helper_functions/email_helpers.py:185:53: W291 trailing whitespace. You probably want to set your editor to remove training whitespace.

@osteele osteele merged commit 2f5355f into dev May 5, 2018
@osteele osteele deleted the origin/seamless/new-emails branch May 5, 2018 03:18
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.

2 participants