Google blocked sending emails using smtplib method. I had posted this problem and this code yesterday. It turns out that google is turning off less secure apps.
import smtplib
server = smtplib.SMTP('smtp.gmail.com', 587)
server.starttls()
server.login('chilwillmike@gmail.com','***********')
server.sendmail('chilwillmike@gmail.com','lambypeter@gmail.com','Hello im your bot')
print('mail sent')
Anyone have another idea to use it ?