İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
2439 Görünümler

In my odoo 16 CE installation my website is sending e-mails on my behalf for the purpose of system operations. I would like to avoid this.

I have a google workspace account linked to the admin user of this odoo instance.

An example: when a user of the website wants to login but forgot his password he requests a Password reset and an e-mail is sent to him with a correct reply-to field but with my user e-mail in the from field.

I have checked this in the e-mail template below:


and whatever changes I do to the

I get my user sending these e-mail because that's the account that authenticates with the SMTP gmail server.

I'd love to have these emails sent out with info@mycompany.com or similar.

How can I achieve this?

Avatar
Vazgeç
Üretici En İyi Yanıt

Well yes, this is achievable.

The short version of it is:

1. Create new credentials in Google API and Services for this purpose
2. Tell odoo that the new authentication is OAuth and get the new tokens and test connection in the Outgoing Mail Connections

If you're behind an ssl server beware of what you've defined for your company's domain. Use https and not only http.

If you use nginx beware of URI mismatch messages. You'll probably have to resort to use both www.yourdomain.extension as well as yourdomain.extension in the server_name variable.

Oh And do not forget to use an alias for your user in your workspace, this is important. And it will have to match with the company -email you define in odoo's company definition. NOTE: This is NOT the user's alias in the workspace users details. This is the settings in your gmail account. as in: https://mail.google.com/mail/u/0/#settings/accounts

This worked for me.


For the long version I hope to share with you a step by step version that I want to have saved in my own knowledge base.

Avatar
Vazgeç

Peter, could you provide some more details of this process? I have my credentials setup in Google API and the project/service created. I have the same/similar issue where emails sent out from other users in my odoo database will show the FROM field as USERNAME <MYEMAIL@company.com>. In other words, the from field shows the user's name, but it will have my (the admin) email address.

İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Eki 24
3336
2
Eyl 24
20738
1
Eki 22
2638
4
Haz 24
31794
0
Nis 19
4879