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

Fixing email notifications that did not work correctly #76

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ercchy
Copy link
Contributor

@ercchy ercchy commented Jul 1, 2015

The "your Badge is created and published" email was sent before the badge was published, so I have duplicated the functionality with slight tweaks in the copy.

I also had to add another template filter, since emails that are sent in text form got ugly HTML rendering which is saved in DB.

except OSError:
# something bad happened, so just return the input
return value
Copy link
Member

Choose a reason for hiding this comment

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

Have a look how text content is generated from HTML emails for the Mechanical MOOC: https://github.com/p2pu/mechanical-mooc/blob/master/mail/views.py#L22-L27.

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