[FIX] usa fix

bzr revid: jam@tinyerp.com-20120625131158-qeggwyomms20zm1f
This commit is contained in:
Jigar Amin - OpenERP
2012-06-25 18:41:58 +05:30
parent f5bc454043
commit 5b339753b1
+1 -1
View File
@@ -396,7 +396,7 @@ class ir_mail_server(osv.osv):
MailDeliveryException and logs root cause.
"""
smtp_from = message['Return-Path'] or message['From']
assert smtp_from, "The Return-Path or From header is required for any outbound email
assert smtp_from, "The Return-Path or From header is required for any outbound email""
# The email's "Envelope From" (Return-Path), and all recipient addresses must only contain ASCII characters.
from_rfc2822 = extract_rfc2822_addresses(smtp_from)