diff --git a/app/api/helpers/mail.py b/app/api/helpers/mail.py index b7797f8fac..ea5fe54e13 100644 --- a/app/api/helpers/mail.py +++ b/app/api/helpers/mail.py @@ -335,11 +335,13 @@ def send_email_to_attendees(order, purchaser_id, attachments=None): action=TICKET_PURCHASED, subject=MAILS[TICKET_PURCHASED]['subject'].format( event_name=order.event.name, - invoice_id=order.invoice_number + invoice_id=order.invoice_number, + frontend_url=get_settings()['frontend_url'] ), html=MAILS[TICKET_PURCHASED]['message'].format( pdf_url=holder.pdf_url, - event_name=order.event.name + event_name=order.event.name, + frontend_url=get_settings()['frontend_url'] ), attachments=attachments ) @@ -366,11 +368,13 @@ def send_order_cancel_email(order): action=TICKET_CANCELLED, subject=MAILS[TICKET_CANCELLED]['subject'].format( event_name=order.event.name, - invoice_id=order.invoice_number + invoice_id=order.invoice_number, + frontend_url=get_settings()['frontend_url'] ), html=MAILS[TICKET_CANCELLED]['message'].format( event_name=order.event.name, order_url=make_frontend_url('/orders/{identifier}'.format(identifier=order.identifier)), - cancel_note=order.cancel_note + cancel_note=order.cancel_note, + frontend_url=get_settings()['frontend_url'] ) ) diff --git a/app/api/helpers/system_mails.py b/app/api/helpers/system_mails.py index a1d4e160cf..459173933a 100644 --- a/app/api/helpers/system_mails.py +++ b/app/api/helpers/system_mails.py @@ -9,6 +9,8 @@ MONTHLY_PAYMENT_FOLLOWUP_EMAIL, EVENT_IMPORTED, EVENT_IMPORT_FAIL, TICKET_PURCHASED_ORGANIZER, TICKET_CANCELLED, \ TICKET_PURCHASED_ATTENDEE, PASSWORD_CHANGE, PASSWORD_RESET_AND_VERIFY, USER_EVENT_ROLE, TEST_MAIL + + MAILS = { EVENT_PUBLISH: { 'recipient': 'Owner, Organizer, Speaker', @@ -157,7 +159,7 @@ u"
Your order has been processed successfully." + u"
You can find your Tickets and Order Invoice attached to this mail." u"

Looking forward to seeing you at the event." - u"
Login to manage your orders at https://eventyay.com
" + u"
Login to manage your orders at {frontend_url} " ) }, TICKET_PURCHASED_ATTENDEE: { @@ -178,7 +180,7 @@ u"Hi, {buyer_email} just bought tickets for the event {event_name}" u"
The order has been processed successfully." + u"
Click here to view/download the invoice." - u"
Login to manage the orders at https://eventyay.com " + u"
Login to manage the orders at {frontend_url} " ) }, TICKET_CANCELLED: { @@ -189,7 +191,7 @@ u"
Please contact the organizer for more info" + u"
Message from the organizer: {cancel_note}" u"
Click here to view/download the invoice." - u"
Login to manage the orders at https://eventyay.com " + u"
Login to manage the orders at {frontend_url} " ) }, EVENT_EXPORTED: {