Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/pywhatkit/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/pywhatkit/__pycache__/mail.cpython-312.pyc

�

(ٜg����ddlZddlZddlmZddlmZddlmZddlm	Z	de
de
de
d	ee
efd
e
ddfd�Zde
de
de
d
e
d
e
ddfd�Zy)�N)�EmailMessage)�MIMEText)�Union)�UnsupportedEmailProvider�email_sender�password�subject�message�email_receiver�returnc���tjd|�}ddddd�}d}|D]}||j�k(s�||}n|�t|j��d���t	j
|d	�5}	|	j
||�t�}
||
d
<||
d<||
d<|
j|�|	j|
�td
�ddd�y#1swYyxYw)z
Send an Emailz(?<=@)[^.]+(?=\.)zsmtp.gmail.comzsmtp.mail.yahoo.comz
smtp.live.comzsmtp.aol.com)�gmail�yahoo�outlook�aolNz is not Supported Currently!i��Subject�From�TozEmail Sent Successfully!)�re�search�groupr�smtplib�SMTP_SSL�loginr�set_content�send_message�print)rrr	r
r�domain�	hostnames�hostname�x�smtp�msgs           �9/usr/local/lib/python3.12/site-packages/pywhatkit/mail.py�	send_mailr%
s����Y�Y�+�\�
:�F�"�&�"��	�I��H�
�������� ��|�H���
��&�&�,�,�.�)9�9U�'V�W�W�	�	�	�(�C�	(�D��
�
�<��*��n�� ��I��"��F��"��D�	����� ����#��
�(�)�
)�	(�	(�s
�5AC�C �	html_codec�:�t|d�}t|||||�y)zSend an Email with HTML Code�htmlN)rr%)rrr	r&rr
s      r$�
send_hmailr)2s ��
�y�&�)�G�
�l�H�g�w��G�)
rr�
email.messager�email.mime.textr�typingr�pywhatkit.core.exceptionsr�strr%r)�r*r$�<module>r1s���	��&�$��>�%*��%*��%*��%*��3��=�
!�	%*�
�%*�
�
%*�PH��H�!$�H�/2�H�?B�H�TW�H�	�Hr*

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