Open vfaronov opened 6 years ago
relates to #73
This seems possible using the undocumented headers
option:
In [10]: print(emails.Message(mail_to="foo@bar.com", text="hi", headers={"Reply-To": "x@y.com", "Return-Path": "a@b.c"}).as_string())
Content-Type: multipart/mixed; boundary="===============1059280084=="
MIME-Version: 1.0
Date: Mon, 18 Dec 2017 09:15:46 +0100
Reply-To: x@y.com
Return-Path: a@b.c
To: foo@bar.com
Not sure if this is the right way, but I think headers
should really be documented, if it is.
Currently, there’s no way to set
Reply-To
in the same way asTo
,Cc
, orBcc
:A
reply_to
parameter toemails.Message
(andemails.html
, etc.) would be nice.