-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmail.py
18 lines (14 loc) · 861 Bytes
/
mail.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import smtplib
def sendMail(message):
try:
s = smtplib.SMTP('smtp.gmail.com', 587)
s.starttls()
s.login("[email protected]", "Sweta@09")
s.sendmail("[email protected]", "[email protected]" , message)
s.quit()
return "Mail Sent Successfully"
except:
return "Some Problem Occurred"
data = """
Growing up in Calcutta, I came to realize that the people of the region were just like its weather: warm all year long. The people of the region are called Bengalis, as the State is known as West Bengal. The regional Bengali language has its roots in Sanskrit, but is known for it's rounded "o" sounds. The distinctive sweetness and melodic tones of the Bengali language make even an admonition sound like a love song. """
print(sendMail(data))