
     h                     J    d dl mZ d dlZ	 d dlZd Zd Zy# eeef$ r Y w xY w)    )SMTPNc                 2    t        j                  d| |       y)zV Use this to add a new gmail account to your OS' keyring so it can be used in yagmail yagmailN)keyringset_password)usernamepasswords     P/var/www/api/v1/venv_getwork_v1/lib/python3.12/site-packages/yagmail/__main__.pyregisterr   
   s    Hh7    c                     ddl } | j                  d      }|j                  dddd	       |j                  d
ddd	       |j                  dddd	       |j                  dddd	       |j                  ddd       |j                  ddd       |j                         }t	        |j
                  |j                        }|j                  |j                  |j                  |j                  |j                         y)zB This is the function that is run from commandline with `yagmail` r   NzSend a (g)mail with yagmail.)descriptionz-toz-tzSend an email to address "TO"+)helpnargsz-subjectz-szSubject of emailz	-contentsz-czContents to sendz-attachmentsz-azAttachments to attachz-userz-uUsername)r   z	-passwordz-pz3Preferable to use keyring rather than password here)tosubjectcontentsattachments)argparseArgumentParseradd_argument
parse_argsr   userr	   sendr   r   r   r   )r   parserargsyags       r
   mainr       s    $$1O$PF
t*IQTU

D/AM
T0B#N
3JRUV
J7
T U   D
tyy$--
(CHHSWScScHdr   )	yagmail.senderr   sysr   ImportError	NameErrorRuntimeErrorr   r     r   r
   <module>r'      s9     
	
8
e 	Y- 		s    ""