changed form email contact

This commit is contained in:
Levi 2016-04-08 20:11:22 -05:00
parent ebe214d95b
commit 50a973c28d

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