B
    ¦f}                 @   sH   d dl mZ d dlmZ d dlmZ dd Zdd Zdd	 Zd
d Z	dS )    )Message)render_template)mailc             C   sD   t d| gtd|||||||||	|
||||||dd}t| d S )NzBooking Tentativezemails/tentative_email.html)recipient_nameagency_namedestinationcheck_in	check_outbooking_ref
hotel_name	agent_refhotel_addressnightsnum_of_rooms	room_type	inclusionnotesgueststotal_price)subject
recipientshtml)r   r   r   send)tor   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   msg r   :C:\Users\Lenovo\Desktop\Projects\times_travel\app\email.pysend_tentative_email   s,    r   c             C   sF   t d| gtd|||||||||	|
|||||||dd}t| d S )NzBooking Confirmationzemails/confirmation_email.html)r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   Zhcn)r   r   r   )r   r   r   r   )r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   confirmation_numberr   r   r   r   send_confirmation_email#   s.    r   c             C   sP   t d| | gtd|||||||||	|
|||||||||dd}t| d S )NzInvoice for Booking zemails/invoice_paid_email.html)r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   
invoice_idinvoice_dateinvoice_time)r   r   r   )r   r   r   r   )r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r    r!   r"   r   r   r   r   send_invoice_paid_email@   s0    
r#   c             C   sJ   t d| | gtd|||||||||	|
||||||dd}t| d S )NzInvoice for Booking zemails/invoice_email.html)r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   )r   r   r   )r   r   r   r   )r   r   r   r   r   r	   r
   r   r   r   r   r   r   r   r   r   r   r   r   r   r   send_invoice_email^   s*    
r$   N)

flask_mailr   flaskr   appr   r   r   r#   r$   r   r   r   r   <module>   s   