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

E-Mail Notification Base Framework #21

Closed
wants to merge 20 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@K-7

K-7 commented Dec 20, 2014

E-Mail Notification Base Framework

to_list = content['to_email']
FROM_ADDRESS = content.get('from_email', default=None)

This comment has been minimized.

@sivaa

sivaa Dec 20, 2014

Contributor

from_address

to_list = content['to_email']
FROM_ADDRESS = content.get('from_email', default=None)
if FROM_ADDRESS == None:

This comment has been minimized.

@sivaa

sivaa Dec 20, 2014

Contributor

if from_address is None:

message.set_from(FROM_ADDRESS)
cc_list = content.get('cc_email', default=None)
if cc_list != None:

This comment has been minimized.

@sivaa

sivaa Dec 20, 2014

Contributor

if cc_list is not None

SENDGRID_EMAIL_PORT = 587
SENDGRID_EMAIL_USERNAME = "SENDGRID_USERNAME"
SENDGRID_EMAIL_PASSWORD = "SENDGRID_PASSWORD"
SENDGRID_FROM_EMAIL = "DEFAULT_FROM_EMAIL"

This comment has been minimized.

@sivaa

sivaa Dec 20, 2014

Contributor

For username, password and from_email, read it from environment variables

@sivaa

This comment has been minimized.

Contributor

sivaa commented Jan 8, 2015

The build is failing. Can you please fix it and send the new PR?

@sivaa sivaa closed this Jan 8, 2015

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