merged master
This commit is contained in:
		
				commit
				
					
						f7e6c26a34
					
				
			
		
					 1 changed files with 1 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -53,14 +53,13 @@ class ContactUsView(FormView):
 | 
			
		|||
            'glasfaser': 'glasfaser@ungleich.ch'
 | 
			
		||||
        }
 | 
			
		||||
        from_page = self.request.POST.get('from_page')
 | 
			
		||||
        print(from_emails.get(from_page, 'info@ungleich.ch'))
 | 
			
		||||
        email_data = {
 | 
			
		||||
            'subject': "{dcl_text} Message from {sender}".format(
 | 
			
		||||
                dcl_text=settings.DCL_TEXT,
 | 
			
		||||
                sender=form.cleaned_data.get('email')
 | 
			
		||||
            ),
 | 
			
		||||
            'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,
 | 
			
		||||
            'to': from_emails.get(from_page, 'info@ungleich.ch'),
 | 
			
		||||
            'to': [from_emails.get(from_page, 'info@ungleich.ch')],
 | 
			
		||||
            'body': "\n".join(
 | 
			
		||||
                ["%s=%s" % (k, v) for (k, v) in form.cleaned_data.items()]),
 | 
			
		||||
            'reply_to': [form.cleaned_data.get('email')],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue