
    Mg                     4    S SK r S SKJr  \" S5      S 5       rg)    N)plugingmailc                 ^    [         R                  " SS5      nUR                  5         UR                  5         [	        S5        U R                  S5      nU R                  S5      n UR                  X45        [	        S5        U R                  S
5      nU R                  S5      nUR                  X5U5        [	        S5        [	        S5        UR                  5         [	        S5        g! [
         a    [	        S5         gf = f! [
         a    [	        S	5        UR                  5          gf = f)z
Sending email from a gmail account using SMTP services.
To use this plugin :
            1. User should have a gmail id.
            2. Less secure apps should be allowed to access the gmail account.
zsmtp.gmail.comiK  zSERVER CONNECTEDzCould Not connect to GmailNzEnter User id
z
Enter your Password
zUser Logged ina  Allow Less secure apps in GOOGLE ACCOUNT SETTINGS to use SMTP services by following the given steps:
                                                                      
		Step 1. Log in to email using your browser.
                                                                      
		Step 2. Go to account settings.
                                                                      
		Step 3. Find 'allow less secure apps' and mark it as ON.z
Enter receiver id
z
Enter message
z	MAIL sentzClosing ConnectionzServer closed)
smtplibSMTPehlostarttlsprintBaseExceptioninputloginquitsendmail)jarvissserveruserPass_wreceiver_idmsgs          ;/Users/admin/workspace/ai/Jarvis/jarviscli/plugins/gmail.pyr   r      s   	.4 !
 <<)*D\\34F
T" ,,67K
,,*
+C
OODs+	+	

KKM	/7  *+  H	I
 	s$   AC) 'D )D D%D,+D,)r   r   r        r   <module>r      s#      ( (r   