Outgoing e-mail header details
Bug #554124 reported by
Dukai Gábor
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Power Email |
Fix Released
|
Medium
|
Sharoon Thomas http://openlabs.co.in |
Bug Description
Hi!
Some small details are missing from the outgoing mail headers to make them look better in the e-mail clients:
-Proper encoding of the 'From' field to work with accented characters.
-The user's company added as an organization.
-Date sent is needed, othewise sorting by date in the client puts these mails as the oldest.
The code is here:
from email.utils import formatdate
from email.header import Header
sender_name = Header(
msg['From'] = sender_name + " <" + core_obj.email_id + ">"
msg['Organization'] = tools.ustr(
msg['Date'] = formatdate()
Related branches
lp:~gdukai/poweremail/outgoing_header_details
- Sharoon Thomas http://openlabs.co.in: Approve
-
Diff: 25 lines (+6/-2)1 file modifiedpoweremail_core.py (+6/-2)
To post a comment you must log in.
Can you propose a merge please with these changes?