0

Possible Duplicate:
Specify a sender when sending mail with Python (smtplib)

I'm using smtplib to send a mail in python. When I view a sent mail, the from line only says "contact" because I have FROM = "[email protected]". However, I'd like the from line to read "foo" instead (but still have an email recipient reply to [email protected]). Any advice?

Community
  • 1
  • 1
sharataka
  • 5,014
  • 20
  • 65
  • 125

1 Answers1

3

Try this:

FROM = "Foo <[email protected]>"
Arsh Singh
  • 2,038
  • 15
  • 16