a
    όc                     @   s8   d dl mZ d dlmZ d dlmZ dd Zdd ZdS )	    )settings)EmailMessage)render_to_stringc                 C   s>   d}t d| |jd}td|| jgtjd}d|_|  dS )z# Send activation email to the user zActivate Your Accountzaccounts/email_activation.htmluserdomainz UseVoice. | Account Confirmationto
from_emailhtmlNr   r   r   emailr   EMAIL_HOST_USERcontent_subtypesend)Znew_usercurrent_sitesubjectmessagemail r   SC:\Users\brahi\OneDrive\Desktop\New folder (10)\UseVoice\src\apps\accounts\utils.pysend_activation_email   s    
r   c                 C   s>   d}t d| |jd}td|| jgtjd}d|_|  dS )z' Send password reset email to the user zPassword Resetz"accounts/email_password_reset.htmlr   zPassword Reset | UseVoice.r   r   Nr   )r   r   r   r   r   r   r   r   send_password_reset_email   s    
r   N)django.confr   django.core.mail.messager   django.template.loaderr   r   r   r   r   r   r   <module>   s   