Jovian
⭐️
Sign In
In [1]:
a = 10
In [2]:
a
Out[2]:
10
In [30]:
import smtplib
In [31]:
server = smtplib.SMTP('smtp.gmail.com',587)
In [32]:
server.ehlo()
Out[32]:
(250,
 b'smtp.gmail.com at your service, [106.207.87.22]\nSIZE 35882577\n8BITMIME\nSTARTTLS\nENHANCEDSTATUSCODES\nPIPELINING\nCHUNKING\nSMTPUTF8')
In [33]:
server.starttls()
Out[33]:
(220, b'2.0.0 Ready to start TLS')
In [34]:
server.ehlo()
Out[34]:
(250,
 b'smtp.gmail.com at your service, [106.207.87.22]\nSIZE 35882577\n8BITMIME\nAUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH\nENHANCEDSTATUSCODES\nPIPELINING\nCHUNKING\nSMTPUTF8')
In [37]:
server.login("priyabratasar2000@gmail.com","vfsrzilgqdcrfifl")
Out[37]:
(235, b'2.7.0 Accepted')

message = "Subect: Hello from python \n\n This is a test"

In [38]:
message = "Subect: Hello from python \n\n This is a test"
In [39]:
server.sendmail("priyabratasar2000@gmail.com","priyabratasar2000@gmail.com",message)
Out[39]:
{}
In [40]:
import pandas as pd
In [41]:
data = pd.read_csv("data.csv")
In [42]:
data
Out[42]:
In [43]:
total_sales = 1000

item_least_sales = "item1"

In [44]:
item_least_sales = "item1"
In [45]:
item_most_sales = "item2"
In [46]:
message = "THE ITEM OF LEAST SALES IS : {sales_item}\n\n".format(sales_item=item_least_sales)
In [47]:
message
Out[47]:
'THE ITEM OF LEAST SALES IS : item1\n\n'
In [48]:
import jovian
In [ ]:
jovian.commit()
[jovian] Saving notebook..
In [ ]: