Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

3

What is the right way to set up mail and aliases?

By
Chris Biggs
on 11/19/14, 3:10 PM 1,045 views

The scenario I have is as follows:

1. The user originates an email based on a template to the partner associated with a project task. The email template has different text based on the current stage of the task.  The reply-to of the message that is created is the catchall alias, even if the email template explicitly says to use object.user-email in the reply-to field.  

2. However if the user checks the "No threading for answers" checkbox on the wizard, then the reply-to is the object.user-email.

3. Similarly, if I use the Send A Message option from the Chatter, the reply-to is the catchall address or the company email address rather than the individual address of the sender.

The result of this is that replies to these emails do not end up in the To Me mail box for the user.

What I am trying to achieve is that emails originated by an employee based on a particular project task, can be answered by the recipient and go back to the mail box of the sender (and also are associated with the correct document - a project task in Odoo).

Is it correct behavior that the reply-to is the catchall address rather than the individual address? Looking for some direction on how this should be set up correctly

I will not give an answer because I am "trapped" by the same concern that I cannot solve by myself. Numerous post on the same topic without a detalled and clear and pedagogical documentation demonstrate that the topic is hot. But nothing happens from the odoo team even when hundreds of projects are concerned: :) :(

AD LIBITOM, michel Guénard
on 11/19/14, 5:35 PM
0
sameer alhwety
On 11/20/14, 7:32 AM

Please reffer this link https://www.odoo.com/forum/help-1/question/how-to-configure-email-gateway-282

Thank you sameer, for the reference. I believe I have my email gateway in itself correctly configured. It is more a point of behavior once the email is received, and how the reply-to is set on an outgoing message.

Chris Biggs
on 11/20/14, 1:14 PM
0
Chris Biggs
On 11/26/14, 12:58 PM

I believe I now have this solved for my specific needs:

1. The incoming email address (which is the same address that is defined as the catchall address) is set up as an alias configured to associate with a specific proejct task document.  In other words, the incoming message will file under a single project task in all cases.

2. I created a Server Action that runs python code which:  a) locates the partner associated with the email message, b) looks up the current active task for that partner and c) looks up the user that is assigned to that that task.  It then calls the message_change_thread method to move that thread to the correct task, and the _notify method to notify the assigned user (so the message appears in his In Box).

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

4 follower(s)

Stats

Asked: 11/19/14, 3:10 PM
Seen: 1045 times
Last updated: 3/16/15, 8:10 AM