def send_email_for_expired_orders(email, event_name, invoice_id, order_url):
 send_email(to=email, action=MAIL_TO_EXPIRED_ORDERS, subject=MAILS[MAIL_TO_EXPIRED_ORDERS]['subject'].format(event_name=event_name), html=MAILS[MAIL_TO_EXPIRED_ORDERS]['message'].format(invoice_id=invoice_id, order_url=order_url))

def send_email_for_expired_orders ( email , event_name , invoice_id , order_url ) : send_email ( to = email , action = MAIL_TO_EXPIRED_ORDERS , subject = MAILS [ MAIL_TO_EXPIRED_ORDERS ] [ 'subject' ] . format ( event_name = event_name ) , html = MAILS [ MAIL_TO_EXPIRED_ORDERS ] [ 'message' ] . format ( invoice_id = invoice_id , order_url = order_url ) )
send email with order invoice link after purchase .