Sindbad~EG File Manager

Current Path : /home/numerotech/bni.numerotech.com/bni_hallmark/core/library/__pycache__/
Upload File :
Current File : //home/numerotech/bni.numerotech.com/bni_hallmark/core/library/__pycache__/email.cpython-310.pyc

o

�D�c9�@srddlmZmZmZmZddlmZddlmZddlmZmZm	Z	m
Z
ddlZddlZddl
Z
Gdd�d�ZdS)�)�request�url_for�flash�render_template)�app)r)�datetime�date�time�	timedeltaNc@s<eZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
S)�EMAILcCs~|r=d}t�|�}|||d||dd|di||dd�|d|d	d�gd
�}z|jj|dd�}WdStd
�YdSdS)N�3rql7lHFpPcoHnNAWYQTFQ�
conf_titleZe_from_email�Reply-ToZ
e_reply_to�to��email�name�typeZe_backup_emails�cc��subject�
recipients�	from_name�html�
from_email�headersrT��messageZ
send_async�error in mandrill�success�Email Id is Blank��mandrill�Mandrill�messages�send�print�rrr�conf�MANDRILL_API_KEY�mandrill_clientr�result�r,�rC:\Users\Admin\Dropbox\Ramya_work_files\Delegate Registration\CommonDelegateRegistration_new\core\library\email.py�sendMail
s

$��
zEMAIL.sendMailc
C�Dd}t�|�}||d|dddi||dd�gd�}|jj|dd	�}d
S)NrzKit counter report�support@numerotec.comrrrrTrr�r"r#r$r%�rrrr)r*rr+r,r,r-�KcReportMail �
�zEMAIL.KcReportMailc
Cr/)NrzFood counter reportr0rrrrTrrr1r2r,r,r-�FcReportMail,r4zEMAIL.FcReportMailc
Csr|r7d}t�|�}||d|dddddi||dd�d|dd�gd	�	}z|jj|d
d�}Wd
Std�Yd
SdS)N�md-WHhIRdtiJJHa7wD0_WY6pQzSurgical Strike 2023r0rrrzsurgicalstrikebackup@gmail.comr)	rrrrrrrrrTrrrr r!r2r,r,r-�ss_sendMail8s
��
zEMAIL.ss_sendMailc
Csp|r6d}t�|�}|||d||dd|di||dd�gd�}z|jj|d	d
�}WdStd�YdSd
S)Nrr
rrZreply_torrrTrrrr r!r'r,r,r-�OtpSendMailMs

��
zEMAIL.OtpSendMailc
Csd|r0d}t�|�}||d|dddi||dd�gd�}z|jj|dd	�}WdStd
�YdSdS)
Nr6zDelegate Registrationr0rrrrTrrrr r!r2r,r,r-�allconfcountsendMailcs
��
zEMAIL.allconfcountsendMailN)	�__name__�
__module__�__qualname__r.r3r5r7r8r9r,r,r,r-r	sr)�flaskrrrr�corerrrr	r
�requestsr"�jsonrr,r,r,r-�<module>s

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists