This commit is contained in:
Kovid Goyal 2017-02-23 09:48:39 +05:30
parent 0763c8e1c3
commit 60af44548d

View File

@ -63,7 +63,7 @@ def create_mail(from_, to, subject, text=None, attachment_data=None,
outer['To'] = to
outer['From'] = from_
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'
if text is not None: