← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 688402] Re: Mass mailing fails when contact or partner name contains commas

 

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/688402

Title:
  Mass mailing fails when contact or partner name contains commas

Status in OpenObject Addons Modules:
  Confirmed

Bug description:
  Steps to reproduce:
-Create a partner whose name contains a comma e.g. "Last, Firstname", plus a valid email address.
-Try to send a mass mailing to this partner.

Observed result:
-The tools.email_send() or the sendmail process fails silently.
-Sendmail logs says that user "Last" was not found.

This bug was observed on Ubuntu Linux with OpenERP version 5.0.15.

A possible patch consists in quoting the partner/contact name in file addons/base/res/partner.wizard/wizard_spam.py, line 50, as shown below:

to = '"%s" <%s>' % (name, adr.email)





References