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.

1

Sending eMails from individual user email ids

By
Sudheendra Walvekar
on 3/24/15, 1:44 PM 762 views

Dear All,

We are using Odoo 8.0. We have about 10 users in sales team and each user have their individual mail ids. Whenever a quotation  or invoice is sent, the mail need to go from individual mail ids. We have configured admin@ourdomain.com in outgoing mail server and the connection test is successful. Currently, when the mail is sent by any user, it uses admin@ourdomain.com as the email id and the same email id appears for the recipient of the emails.

I would appreciate any help in resolving the issue.

Regards,

Sudheendra

1
Alby Antony
On 3/25/15, 1:24 AM

hai you can set the out going mail id easily via email templates

settings->technical->email->templates

there search for your template and edit it

edit the template, on email configuration page you can see the outgoing mail option give the query there like

${(object.user_id.email or object.company_id.email or 'noreply@localhost')|safe}

this will send mail from usermail or company mail or localhost

enjoy odoo

1

Cyril Gaspard (GEM)

--Cyril Gaspard (GEM)--
4136
| 5 6 8
Paris, France
--Cyril Gaspard (GEM)--

Forum contributor since 2008

Cyril Gaspard (GEM)
On 3/24/15, 6:14 PM

Hi,

use : ${user.partner_id.email | safe}

bye

@Cyril, what does "safe" signify?

Atchuthan - Technical Consultant, Sodexis Inc
on 3/26/15, 2:51 AM

Hi, user.partner_id.email | safe == user.partner_id.email or false, this will return false if there is no value for the first variable. bye

Cyril Gaspard (GEM)
on 3/27/15, 6:52 PM

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

5 follower(s)

Stats

Asked: 3/24/15, 1:44 PM
Seen: 762 times
Last updated: 3/25/15, 9:39 PM