Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
670 Tampilan

Hello Odoo Community,

I'm currently using Odoo 18 for CRM, and I’ve set up Office365 for sending and receiving emails. When I send a message from the chatter, the customer receives the email, but the sender appears as:

  • From: notifications@<domainname.com> (configured in Alias Domain under Settings → Technical → Alias Domains)
  • CC: sales@<domainname.com> (configured in the Sales Team's Email Alias field)

What I Want to Achieve:

  • The email should be sent directly from the user's Office365 email address (the one they are logged in with).
  • The customer should see the actual sales representative’s email instead of notifications@<domainname.com>.
  • When the customer replies, the reply should go directly to the sales rep’s email and also be logged in the Odoo chatter.

I would be grateful if someone could guide me on how to ensure that emails are sent from the correct user’s email and that customer replies are directed to the respective sales rep's email.

Thank you in advance!

Thanks & Regards,

Adesh Paul

Avatar
Buang
Jawaban Terbai

Hi Adesh,

if you use mail templates to send your messages, you normally have the option to define dynamic conditions for the sender.

It is best to localise the mail template to be used for your request or create a mail template under App Settings -> Technical (accessible in developer mode) -> Email Templates

Make sure that you have entered the following in the From field: {{ (object.user_id.email_formatted or object.company_id.email_formatted or user.email_formatted) }}


If you then send an email in the CRM using this template via your account, your user's email should be displayed to the customer. If this is not the case, check your MS365 configuration in Entra again (https://www.odoo.com/documentation/18.0/applications/general/email_communication/azure_oauth.html?)

If the customer then replies to your email, Odoo should recognise the data record using a record ID provided and assign it to your message - all followers of the data record will then be informed that the message has been received.


I hope that I have been able to help you a little, or at least have given you another approach to overcoming your challenge.


Regards,

Chris Dominiak (Intero Technologies GmbH)

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
3
Mar 25
3373
2
Des 24
1586
1
Nov 24
1036
0
Nov 24
1132
1
Jul 25
196