Why does SendGrid allow me to send emails from any address?
问题 I have a local python file that I'm using to send emails through sendgrid's SMTP: gmail_sender = "example@gmail.com" server_username = "apikey" server_password = prod.CONFIG['sendgrid_SMTP'] server = smtplib.SMTP_SSL('smtp.sendgrid.net', 465) server.login(server_username, server_password) email_information['From'] = gmail_sender server.sendmail(email_information['From'], email_information['To'], email_information.as_string()) I'm confused about who is sending the email. I replaced gmail