Fixed an error and from address in new vm email template

This commit is contained in:
PCoder 2017-09-02 22:47:31 +05:30
commit b5120040d3
3 changed files with 5 additions and 4 deletions

View file

@ -660,14 +660,15 @@ class PaymentVMView(LoginRequiredMixin, FormView):
request.get_host()),
'page_header': _(
'Your New VM {vm_name} at Data Center Light'.format(
vm_name=vm.name))
vm_name=vm.get('name')))
}
email_data = {
'subject': context.get('page_header'),
'to': request.user.email,
'context': context,
'template_name': 'new_booked_vm',
'template_path': 'hosting/emails/'
'template_path': 'hosting/emails/',
'from_email': settings.DCL_SUPPORT_FROM_ADDRESS,
}
email = BaseEmail(**email_data)
email.send()