changed form email contact

This commit is contained in:
Levi 2016-04-08 20:11:22 -05:00
parent a45f019a14
commit bcc7d35cd8

View file

@ -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()