import smtplib
email_address='[email protected]'
rec_address='[email protected]'
email_password=input(str('please input your password: '))
smtp = smtplib.SMTP('smtp.gmail.com',587)
smtp.starttls()
smtp.login(email_address,email_password)
print('login success')
subject='i like xff'
body='xff you are so cute'
msg=f'subject:{subject}\n\n{body}'
smtp.sendmail(email_address , rec_address , msg)
print('mail sent successfully')