-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patht.py
34 lines (33 loc) · 802 Bytes
/
t.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# import smtplib
# import time
#
#
# def send_email(subject, msg):
# # email = input("Enter a email address: ")
#
# email = input("What email ?")
#
# try:
#
# import config
#
# server = smtplib.SMTP('smtp.gmail.com:587')
# server.ehlo()
# server.starttls()
# server.login(config.EMAIL_ADDRESS, config.PASSWORD)
# message = 'Subject: {}\n\n{}'.format(subject, msg)
# server.sendmail(email, email, message)
# server.quit()
# print("Success: Email sent!")
# time.sleep(60)
# except:
#
# print("Email failed to send.")
#
#
# subject = "Test subject"
# msg = "Hello there, how are you today?"
# send_email(subject, msg)
import randfacts
x = randfacts.getFact()
print(x)