changed form email contact
This commit is contained in:
		
					parent
					
						
							
								ebe214d95b
							
						
					
				
			
			
				commit
				
					
						50a973c28d
					
				
			
		
					 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})
 | 
			
		||||
        email = EmailMultiAlternatives('Subject', text_content)
 | 
			
		||||
        email.attach_alternative(html_content, "text/html")
 | 
			
		||||
        email.to = ['to@example.com']
 | 
			
		||||
        email.to = ['info@digitalglarus.ch']
 | 
			
		||||
        email.send()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue