0

How to put a bot in a website

How do you put a bot that will send an email to you when someone registers a website

1st Jul 2020, 10:35 AM
LitUpSeb
LitUpSeb - avatar
4 Answers
0
Correct
1st Jul 2020, 12:05 PM
LitUpSeb
LitUpSeb - avatar
0
👏👏
1st Jul 2020, 12:14 PM
LitUpSeb
LitUpSeb - avatar
- 1
Hi {name}, your grade is {grade}""" from_address = "my@gmail.com" password = input("Type your password and press enter: ") context = ssl.create_default_context() with smtplib.SMTP_SSL("smtp.gmail.com", 465, context=context) as server: server.login(from_address, password) with open("contacts_file.csv") as file: reader = csv.reader(file) next(reader) # Skip header row for name, email, grade in reader: server.sendmail( from_address, email, message.format(name=name,grade=grade), )
1st Jul 2020, 12:15 PM
LitUpSeb
LitUpSeb - avatar