o
    Žèdi  ã                   @   s,   d dl mZ d dlmZ dd„ Zdd„ ZdS )é    )Úget_template)ÚBaseMailServicec           	      C   sP   d}| j g}tdƒ}tdƒ}|| jdœ}| |¡}| |¡}t ||||¡ d S )Nz EV Chargy - Reset your password!ztext/forgot_password_mail.txtzmail/forgot_password_mail.html)ÚlinkÚname)Úemailr   r   Úrenderr   Ú	send_main)	ÚuserZpassword_linkÚsubjectÚ	to_emailsÚtext_templateÚhtml_templateÚcontextÚbodyÚhtml_content© r   ú^/var/www/html/evchargy.com/django-station-ev/station_ev/apps/account/services/mail_services.pyÚsend_reset_password_mail   s   

r   c                 C   sP   d}| j jg}tdƒ}tdƒ}d| ji}| |¡}| |¡}t ||||¡ d S )Nz0EV Chargy - One-Time Password (OTP) Verificationztext/user_otp_mail.txtzmail/user_otp_mail.htmlZotp_code)r	   r   r   Úcoder   r   r   )r	   r
   r   r   r   r   r   r   r   r   r   Úsend_opt_verification_mail   s   



r   N)Údjango.template.loaderr   Zbase.base_mail_serivcer   r   r   r   r   r   r   Ú<module>   s    