KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am using Python email and smtplib to send an email from Python. I am doing this via the Gmail SMTP server using my Gmail credentials. This works fine, however I would like to specify a Reply-to email address different from the from address, so that replies go to a separate address (non-Gmail.) I have tried creating a reply to parameter like this: msg = MIMEMultipart() msg['From'] = "email@gmail.com" msg['To'] = to msg['Subject'] = subject msg['Reply-to'] = "email2@example.com" But this doesn't work. Can't find any info on this in the Python docs.
Tags (comma-separated)
Save Edits
Cancel