parent
331b7dea98
commit
d43855adda
7 changed files with 36 additions and 19 deletions
|
|
@ -21,7 +21,10 @@ class BaseEmail(object):
|
|||
|
||||
self.email = EmailMultiAlternatives(self.subject, text_content)
|
||||
self.email.attach_alternative(html_content, "text/html")
|
||||
self.email.from_email = '(ungleich) ungleich Support <info@ungleich.ch>'
|
||||
self.email.from_email = kwargs.get(
|
||||
'from',
|
||||
'(ungleich) ungleich Support <info@ungleich.ch>'
|
||||
)
|
||||
self.email.to = [kwargs.get('to', 'info@ungleich.com')]
|
||||
|
||||
def send(self):
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ class LoginViewMixin(FormView):
|
|||
class PasswordResetViewMixin(FormView):
|
||||
# template_name = 'hosting/reset_password.html'
|
||||
# form_class = PasswordResetRequestForm
|
||||
success_message = "The link to reset your email has been sent to your email"
|
||||
success_message = "Thank you! You will shortly receive a password reset mail from us"
|
||||
# success_url = reverse_lazy('hosting:login')
|
||||
|
||||
def test_generate_email_context(self, user):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue