below is a section of my code

s = smtplib.SMTP('smtp.gmail.com', 587)
s.starttls()
s.login('XXXXXXgmail.com','password')
message = "test message"
s.sendmail("no_reply","[email protected]",message)
s.quit 

I tried to set an alias(or a fake email),”no_reply” to appear as the sender but this didn’t work since from the sent email the login email was still showing as the sender.

2