Add option to attach calendar files to emails (#1457)

This commit is contained in:
Raphael Michel
2019-10-21 10:41:22 +02:00
committed by GitHub
parent 2b18621c76
commit 19b10e3ca4
6 changed files with 43 additions and 9 deletions

View File

@@ -707,7 +707,8 @@ def _order_placed_email(event: Event, order: Order, pprov: BasePaymentProvider,
email_subject, email_template, email_context,
log_entry,
invoices=[invoice] if invoice and event.settings.invoice_email_attachment else [],
attach_tickets=True
attach_tickets=True,
attach_ical=event.settings.mail_attach_ical
)
except SendMailException:
logger.exception('Order received email could not be sent')
@@ -723,7 +724,8 @@ def _order_placed_email_attendee(event: Event, order: Order, position: OrderPosi
log_entry,
invoices=[],
attach_tickets=True,
position=position
position=position,
attach_ical=event.settings.mail_attach_ical
)
except SendMailException:
logger.exception('Order received email could not be sent to attendee')