mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
0763c8e1c3
commit
60af44548d
@ -63,7 +63,7 @@ def create_mail(from_, to, subject, text=None, attachment_data=None,
|
|||||||
outer['To'] = to
|
outer['To'] = to
|
||||||
outer['From'] = from_
|
outer['From'] = from_
|
||||||
outer['Date'] = formatdate(localtime=True)
|
outer['Date'] = formatdate(localtime=True)
|
||||||
outer['Message-Id'] = "<{}@{}>".format(uuid.uuid4(), get_msgid_domain())
|
outer['Message-Id'] = "<{}@{}>".format(uuid.uuid4(), get_msgid_domain(from_))
|
||||||
outer.preamble = 'You will not see this in a MIME-aware mail reader.\n'
|
outer.preamble = 'You will not see this in a MIME-aware mail reader.\n'
|
||||||
|
|
||||||
if text is not None:
|
if text is not None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user