#hotfix email after book vm
This commit is contained in:
		
					parent
					
						
							
								cca3a23263
							
						
					
				
			
			
				commit
				
					
						a6eba4f536
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -275,9 +275,14 @@ class PaymentVMView(LoginRequiredMixin, FormView): | ||||||
| 
 | 
 | ||||||
|             # Send notification to ungleich as soon as VM has been booked |             # Send notification to ungleich as soon as VM has been booked | ||||||
|             # TODO send email using celery |             # TODO send email using celery | ||||||
|  |             context = { | ||||||
|  |                 'vm': plan, | ||||||
|  |                 'order': order | ||||||
|  |             } | ||||||
|             email_data = { |             email_data = { | ||||||
|                 'subject': 'New VM request', |                 'subject': 'New VM request', | ||||||
|                 'to': 'info@ungleich.ch', |                 'to': 'info@ungleich.ch', | ||||||
|  |                 'context': context, | ||||||
|                 'template_name': 'new_booked_vm', |                 'template_name': 'new_booked_vm', | ||||||
|                 'template_path': 'emails/' |                 'template_path': 'emails/' | ||||||
|             } |             } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue