changed form email contact
This commit is contained in:
parent
a45f019a14
commit
bcc7d35cd8
1 changed files with 1 additions and 1 deletions
|
@ -22,5 +22,5 @@ class ContactUsForm(forms.ModelForm):
|
||||||
html_content = render_to_string('emails/contact.html', {'data': self.cleaned_data})
|
html_content = render_to_string('emails/contact.html', {'data': self.cleaned_data})
|
||||||
email = EmailMultiAlternatives('Subject', text_content)
|
email = EmailMultiAlternatives('Subject', text_content)
|
||||||
email.attach_alternative(html_content, "text/html")
|
email.attach_alternative(html_content, "text/html")
|
||||||
email.to = ['to@example.com']
|
email.to = ['info@digitalglarus.ch']
|
||||||
email.send()
|
email.send()
|
||||||
|
|
Loading…
Reference in a new issue