[7.0] Reply-to / email_from in email templates ignored

Bug #1171505 reported by Nathan Jackson
110
This bug affects 24 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 1

Bug Description

When sending an email from the system using a template with a Reply-to email address, this address is ignored and the reply-to field is always "Followers of......." and not the email address or field specified in the template.

Currently running OpenERP version 7.0-20130327-002325

Revision history for this message
Nathan Jackson (nathan-f) wrote :

After further testing it seems that the "From" field in email templates is also ignored.

Revision history for this message
Amit Bhavsar (Open ERP) (amb-openerp) wrote :

Hello Nathan,

Yes, I have faced the same problem while set the email address to Reply-to. That's why I am confirming this Issue with medium Importance.

Moreover, you talk about the "From" field is ignored. but It's work fine in latest revision.

Thanks for the reporting!

Changed in openobject-addons:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1)
summary: - Reply-to in email templates ignored
+ [Trunk/7.0] Reply-to in email templates ignored
Revision history for this message
electro (electro1) wrote : Re: [Trunk/7.0] Reply-to in email templates ignored

Hello Amit,
sincerely on my "mail module v7.0.1.0" (addon revision 9218) the "From" field configured in the template is ignored while current user alias is used.
I'm tested this with template Send Sale Order by Email (where I've changed From field with a fixed and correct email address)

please openerp team can you help me to solve this ?

regards

Revision history for this message
electro (electro1) wrote :

Hello All,
for email_from field I've suggested a patch here: https://bugs.launchpad.net/openobject-addons/+bug/1193283

Revision history for this message
SpideySense (v-mike-g) wrote :

Hello,
I was having the same problem too. Changes to the From and Reply-To fields in email templates were being ignored. But, I did get it to work by restarting the OpenERP service. The next time I sent email, the the settings I changed to From & Reply-To were in effect.

Cheers!

Revision history for this message
Rodrigo Rodrigues da Silva (rodrigopitanga) wrote :

Same here. Neither email_from nor reply_to are taken from the template. The template settings for email_from and reply_to from the template should override any other setting (as it occurs with the message subject, for example).

Restarting the server or installing python-jinja2 (it was already installed, actually) didn't work.

OpenERP version: 7.0-20131002-231025-1 (from OpenERP SA nightly .deb channel)
Jinja2 version: 2.5.5-1

Revision history for this message
Ferdinand (office-chricar) wrote :

this path fixes
* copying email_from and reply_to into mail composer
* using both values to compose a message

Changed in ocb-addons:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → OpenERP Community Backports Team (ocb)
Revision history for this message
Ferdinand (office-chricar) wrote :
Revision history for this message
Rodrigo Rodrigues da Silva (rodrigopitanga) wrote :

Has this patch been merged?

Revision history for this message
Michael Karrer (michaelkarrer81) wrote :

Any Update on this one? There is not even a branch or merge proposal for this patch?!?

Revision history for this message
Thibault Delavallée (OpenERP) (tde-openerp) wrote :

Hello,

In 7 indeed reply_to and email_from are not taken into account when using templates. This is a known limitation of the system, due to the lack of fields in the composer to store the information. Ferdinand's patch is not applicable in 7.0 because it adds a new field. And the patch for 6.1 is not applicable in 7 or trunk because the mail module was completely rewritten for the 7.0 version; notably aliases have been introduced to handle the reply-to concept.

In trunk reply_to and email_from are correctly managed, but note that their value may depend on the options you choose in the mail composer wizard.

summary: - [Trunk/7.0] Reply-to in email templates ignored
+ [7.0] Reply-to in email templates ignored
summary: - [7.0] Reply-to in email templates ignored
+ [7.0] Reply-to / email_from in email templates ignored
Changed in openobject-addons:
importance: Medium → Low
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Removing ocb-addons from this bug as this implies that an MP is submitted to the project.

no longer affects: ocb-addons
Changed in openobject-addons:
status: Confirmed → In Progress
status: In Progress → Confirmed
Revision history for this message
Roberto (valentini-roberto) wrote :

Hi,

I tryed to apply the patches proposed in this thread but both of them are not working.
In particular
- patch proposed by electro does not affect the behaviour
- patch proposed by Ferdinand cannot be applied

I am working on rev 9916 of v7

What I'm doing wrong?

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

This is already fixed in trunk/master, so will be available in v8.

Changed in openobject-addons:
status: Confirmed → Fix Released
milestone: none → 8.0
Revision history for this message
martin (riess82) wrote :

Is there a guide how to get this working in v7?

Revision history for this message
Hector Hurtarte (hectorh30) wrote :

I'm also looking to get this working on v7, if anyone has some guidelines :-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.