Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Changing the from field of a system email sent via smtp with google workspace account authentication

Subscribe

Get notified when there's activity on this post

This question has been flagged
smtpaccountgmailfromworkspace
1 Reply
3365 Views
Avatar
Peter Romão

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?

0
Avatar
Discard
Avatar
Peter Romão
Author Best Answer

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.

0
Avatar
Discard
Rick Applegate

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.

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
How to configure Outgoing Mail Servers to send emails with the address of logged in user (v17).
outgoing smtp gmail developermode
Avatar
Avatar
Avatar
Avatar
3
Oct 24
5810
connection with smtp server
smtp gmail connection odooV8
Avatar
Avatar
Avatar
2
Sep 24
21669
Google Workspace Mail Servers Broken Emails
gmail mailserver gsuite workspace
Avatar
Avatar
1
Oct 22
3198
How to Configure Outgoing Mail Server with Gmail SMTP without enabling the Less Secure Apps Access ? Solved
google email smtp gmail outgoingmailserver
Avatar
Avatar
Avatar
Avatar
4
Jun 24
35604
Jumpcloud, Odoo, and G-Suite
authentication smtp gmail enterprise 12.0
Avatar
0
Apr 19
5422
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now