We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35be0df commit 15c0aa7Copy full SHA for 15c0aa7
Scripts/P07_ScriptToSendMail.py
@@ -0,0 +1,14 @@
1
+# Author: OMKAR PATHAK
2
+
3
+import smtplib
4
5
+fadd = '' # sender's email address
6
+tadd = '' # receiver's email address
7
+msg = 'Mail sent through Python!' # Message to be sent!
8
+username = '' # Your username(email ID)
9
+password = '' # Your password for above email ID
10
+server = smtplib.SMTP('smtp.gmail.com',587)
11
+server.ehlo()
12
+server.starttls()
13
+server.login(username,password)
14
+server.sendmail(fadd,tadd,msg)
0 commit comments