My Reminder Bot
This is a reminder bot. In the amount of seconds you say, it sends you an email. Only people with gmail can use this. When it asks your email and password, you need to enter your gmail info. To use this, you have to switch on the
Less Secure Apps settings in your gmail.
@VulcanWM so why dont you do this
username = input("Email: (It has to be a gmail for this to work)\n") reminder = "[email protected]" password = #<stored in env variables so its hidden> gmail_server = smtplib.SMTP('smtp.gmail.com', 587) gmail_server.starttls(context=context) gmail_server.login(reminder, password) message["From"] = reminder message["To"] = username
gmail_server.sendmail(reminder, username, message.as_string()) #assuming first username there was "from" and second "to"
so that instead of your own account sending something, the reminder account sends it, and the gmail server thing logs in as the reminder, not the user but it sends to the user
you should include a short tutorial for how to switch on the Less Secure Apps settings in your gmail. Also maybe make it a bit more precise for the time; like for 4:30pm, do we write 430, or 4:30, or 16:30, etc. because i was a little confused
ALso im not sure if its a bug, but for some reason i cant type my password. Like i can type all the previous info, but for the password nothing...