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

[Odoo > 8.0]How to enable email-notifications on lead creation from the website contact form?

Subscribe

Get notified when there's activity on this post

This question has been flagged
emailleadsnotificationcontactus9.0
2 Replies
13956 Views
Avatar
Ermin Trevisan

Using standard Odoo community edition without additional modules and an almost standard setup.

1
Avatar
Discard
Avatar
Ermin Trevisan
Author Best Answer

I've spent the hell a lot of time to find out a reasonable way....this is my suggestion:


1. Email Server Setup
Setup a standard incoming email server with a catchall account as described everywhere. Setup a standard SMTP server. It is not necessary to use stuff like SMTP per user or so.


2. User email address and user email alias
Setup a user email address for the default sales person on the same domain as the catchall domain, setup an email alias with a different name in order to avoid dead locks. Example:
- user email address: john.doe@example.com
- user email alias: john-doe@example.com, set the notification preference to "always receive notifications..."


3. Website Admin: Set the default salesperson and sales team. This is nice, but has unfortunately absolutely no effect. All website contacts are nevertheless only assigned to the admin user. So we have to setup an automated action to correct this faulty behaviour which Odoo is not willing to change (see https://www.odoo.com/forum/help-1/question/how-to-set-the-default-sales-person-for-e-commerce-orders-instead-of-administrator-87414 and https://github.com/odoo/odoo/issues/4682)


4. Difference between message subtype "discussion" and message subtype "internal note"

When somebody sends an email message to a valid odoo alias (for example to sales@example.com), then this is a message of the subtype discussion. For such messages email notifications are sent to the followers according to the notification preference of the users. In this case we do not have a problem.
But messages from the creation of new lead through the website contact form are internal notes, and for internal notes there is no automatic email notification in standard Odoo. So we have to create our own automated action to do this.


This process has 3 steps, first we create an email template to define a proper message, secondly we create a server action which sends an email notification using our defined template and at last we define an automated action, which assigns the new lead created to the default sales person and sends an email notification.
Step 1:
Duplicate the email template "Reminder to User" and adapt it according your taste, rename it for example as "New Lead Notification"
Step 2:
Create a server action named "New Lead Notification", action to do: send email, base model "Lead/Opportunity", email template "New Lead Notification"
Step 3:
Create an automated action to assign the new lead to the default sales person and send an email notification to this sales person:
Create a new automated action, name it "Assign default sale person to lead", set "when to run" as "On creation", then on the Actions tab define the "Responsible" as your default sales person and add him and others as followers as you like. Under "Server actions to run" add our server action defined in Step 2.
Please make sure you have installed the module base_action_rule (Odoo <=10.0) or base_automation (Odoo 11.0).


Finished!


Side note: If you are doing this, you have to use a SMTP/MTA service which allows to relay messages, because the sender is the original sender of the email or the contact request outside of Odoo and this message is forwarded by Odoo to the sales person also outside of Odoo, this is not always accepted (Amazon SES for example does not accept it).

3
Avatar
Discard
Avatar
Philippe Thuaud
Best Answer

Thanks @Ermin

It worked for me.


0
Avatar
Discard
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
Website Contact Form Both Send E-Mail and Add Lead/Opportunity
leads contactus
Avatar
0
Jan 25
1391
CAN I CONFIGURE DIFFERENT OUTGOING EMAILS?
email leads
Avatar
0
Aug 22
2687
[9.0]Using a different email template for sending orders and invoices Solved
email 9.0
Avatar
Avatar
1
Jan 17
4473
Is there an Email Notification on Leads/Issues?
email notification
Avatar
Avatar
4
Aug 16
7285
Mail Notification while approving leave in OpenERP in Andoird
email notification
Avatar
0
Mar 15
4827
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