I'm using smtplib to send emails using sendmail() function, how to know if email was sent or not as the function doesn't return a response code
import smtplib
s = smtplib.SMTP('smtp-mail.outlook.com', 587)
s.starttls()
s.login('myemail@outlook.com', 'mypassword')
s.sendmail('myemail@outlook.com', 'theotheremail@domain.com', 'message')
s.quit()