Skip to content

Commit

Permalink
Merge pull request #200 from johnpooch/develop
Browse files Browse the repository at this point in the history
Add sendgrid email from
  • Loading branch information
johnpooch authored Apr 16, 2021
2 parents bc8f8e5 + 03d8c55 commit 6c3d6e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def password_reset_token_created(sender, instance, reset_password_token, *args,
send_mail(
'Password Reset for {title}'.format(title='diplomacy.gg'),
email_plaintext_message,
'[email protected]',
['[email protected]'],
getattr(settings, 'DIPLOMACY_EMAIL_FROM_ADDRESS', '[email protected]'),
[reset_password_token.user.email],
fail_silently=False,
html_message=email_html_message,
)
1 change: 1 addition & 0 deletions project/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
EMAIL_USE_TLS = True
EMAIL_HOST_USER = 'apikey'
EMAIL_HOST_PASSWORD = os.environ.get('SENDGRID_API_KEY')
DIPLOMACY_EMAIL_FROM_ADDRESS = os.environ.get('SENDGRID_EMAIL_FROM')

LOGGING = {
'version': 1,
Expand Down

0 comments on commit 6c3d6e3

Please sign in to comment.