Changed the to and reply-to fields for EmailMessage to list, as it expects input of that type
This commit is contained in:
		
					parent
					
						
							
								9f2f0f7db3
							
						
					
				
			
			
				commit
				
					
						3750ba5182
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -130,9 +130,9 @@ class OrderView(TemplateView):
 | 
			
		|||
        }
 | 
			
		||||
        email_data = {
 | 
			
		||||
            'subject': "Data Center Light Order from %s" % context['email'],
 | 
			
		||||
            'to': 'info@ungleich.ch',
 | 
			
		||||
            'to': ['info@ungleich.ch'],
 | 
			
		||||
            'body': "\n".join(["%s=%s" % (k, v) for (k, v) in context.items()]),
 | 
			
		||||
            'reply_to': context['email'],
 | 
			
		||||
            'reply_to': [context['email']],
 | 
			
		||||
        }
 | 
			
		||||
        email = EmailMessage(**email_data)
 | 
			
		||||
        email.send()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue