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

Extract send_mail logic in AbstractEmailForm #2926

Closed
wants to merge 1 commit into from
Closed

Extract send_mail logic in AbstractEmailForm #2926

wants to merge 1 commit into from

Conversation

tleguijt
Copy link
Contributor

In some cases it has to be possible to override the behaviour of sending out email while processing the emailform, for example to support HTML mail or provide your custom template.

Since super(AbstractEmailForm, self).process_form_submission(form) is called and this super method is still need, I've moved the send_mail logic to a separate function which can be overridden.

While working on it I took the liberty to tackle the issue described in #2833

@m1kola m1kola added this to the 1.7 milestone Aug 26, 2016
@m1kola m1kola self-assigned this Aug 26, 2016
m1kola added a commit that referenced this pull request Aug 26, 2016
@m1kola
Copy link
Contributor

m1kola commented Aug 26, 2016

Thanks @tleguijt and congratulations on your first commit into Wagtail! 🎉

Merged in b37e8cc + parent.

P.S.: I renamed the method from send_form_mail to send_mail. Hope that's ok.

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

Successfully merging this pull request may close these issues.

None yet

2 participants