Overslaan naar inhoud
Odoo Menu
  • Aanmelden
  • Probeer het gratis
  • Apps
    Financiën
    • Boekhouding
    • Facturatie
    • Onkosten
    • Spreadsheet (BI)
    • Documenten
    • Ondertekenen
    Verkoop
    • CRM
    • Verkoop
    • Kassasysteem winkel
    • Kassasysteem Restaurant
    • Abonnementen
    • Verhuur
    Websites
    • Websitebouwer
    • E-commerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Bevoorradingsketen
    • Voorraad
    • Productie
    • PLM
    • Inkoop
    • Onderhoud
    • Kwaliteit
    Personeelsbeheer
    • Werknemers
    • Werving & Selectie
    • Verlof
    • Evaluaties
    • Aanbevelingen
    • Wagenpark
    Marketing
    • Social media Marketing
    • E-mailmarketing
    • SMS Marketing
    • Evenementen
    • Marketingautomatisering
    • Enquêtes
    Diensten
    • Project
    • Urenstaten
    • Buitendienst
    • Helpdesk
    • Planning
    • Afspraken
    Productiviteit
    • Chat
    • Goedkeuringen
    • IoT
    • VoIP
    • Kennis
    • WhatsApp
    Apps van derden Odoo Studio Odoo Cloud Platform
  • Bedrijfstakken
    Detailhandel
    • Boekhandel
    • kledingwinkel
    • Meubelzaak
    • Supermarkt
    • Bouwmarkt
    • Speelgoedwinkel
    Food & Hospitality
    • Bar en Pub
    • Restaurant
    • Fastfood
    • Guest House
    • Drankenhandelaar
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architectenbureau
    • Bouw
    • Vastgoedbeheer
    • Tuinieren
    • Vereniging van eigenaren
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingbureau
    • Advocatenkantoor
    • Talentenwerving
    • Audit & Certificering
    Productie
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Relatiegeschenken
    Gezondheid & Fitness
    • Sportclub
    • Opticien
    • Fitnesscentrum
    • Wellness-medewerkers
    • Apotheek
    • Kapper
    Trades
    • Klusjesman
    • IT-hardware & support
    • Solar Energy Systems
    • Schoenmaker
    • Schoonmaakdiensten
    • HVAC Services
    Others
    • Nonprofit Organization
    • Milieuagentschap
    • Verhuur van Billboards
    • Fotograaf
    • Fietsleasing
    • Softwareverkoper
    Browse all Industries
  • Community
    Leren
    • Tutorials
    • Documentatie
    • Certificeringen
    • Training
    • Blog
    • Podcast
    Versterk het onderwijs
    • Onderwijs- programma
    • Scale Up! Business Game
    • Bezoek Odoo
    Download de Software
    • Downloaden
    • Vergelijk edities
    • Releases
    Werk samen
    • Github
    • Forum
    • Evenementen
    • Vertalingen
    • Word een Partner
    • Services for Partners
    • Registreer je accountantskantoor
    Diensten
    • Vind een partner
    • Vind een boekhouder
    • Een adviseur ontmoeten
    • Implementatiediensten
    • Klantreferenties
    • Ondersteuning
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Vraag een demo aan
  • Prijzen
  • Help

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

  • CRM
  • e-Commerce
  • Boekhouding
  • Voorraad
  • PoS
  • Project
  • MRP
All apps
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Alle posts Personen Badges
Labels (Bekijk alle)
odoo accounting v14 pos v15
Over dit forum
Help

How can I set custom from and reply-to addresses in email templates?

Inschrijven

Ontvang een bericht wanneer er activiteit is op deze post

Deze vraag is gerapporteerd
emailv7
6 Antwoorden
27173 Weergaven
Avatar
Javier Fuentes

Hi,

I have been making tests to set up some email templates to contact our clients. These are the addressing settings I am using for one of these templates:

From: ${object-user_id.email}

To (Emails): ${object.email}

To (Partners): ${object.id}

Reply-To:

These are my questions:

  • The e-mail is correctly sent, but the from address when the email is received shows the outgoing email address of the system and not the email of the user. How could I set the From field so that the user's address is shown?
  • I would like to address the potential responses to an email alias (i.e. marketing@mydoamin.com) so that a lead is created when anyone answers the mail. How could I set this alias address (marketing@mydomain.com) in the Reply-to field?

Thank you very much. Regards,

Javier

2
Avatar
Annuleer
Avatar
Cyril Gaspard (GEM)
Beste antwoord

Hi,

user should have an email given in his account, no need to enter a value in field FROM, see the code :

    'email_from': fields.char('From',
        help="Sender address (placeholders may be used here). If not set, the default "
                "value will be the author's email alias if configured, or email address."),

to have a different address for the reply, give the value address you want in field reply to.

    'reply_to': fields.char('Reply-To', help="Preferred response address (placeholders may be used here)"),

Bye

1
Avatar
Annuleer
Avatar
Javier Fuentes
Auteur Beste antwoord

Thank you very much for your response GEM. I am not sure I've understood well the solution your have proposed. Following your comment, this is how I have configured the addressing information of the template:

From: (blank)

To (Emails): ${object.email}

To (Partners): ${object.id}

Reply-To: marketing@mydomain.com

I have sent a sample email using this template as one of the users of the system and this is what I have obtained:

  • Sender address is still the e-mail of the configured outgoing mail address (not the address of the user sending the email)
  • If a try to reply-to the received e-mail, the destination address is the address of the user.

What am I doing wrong?

Thank you for your time. Regards,

Javier

1
Avatar
Annuleer
Avatar
Janebutt
Beste antwoord

Hello,

In the user's account, an email address should be provided, eliminating the necessity to manually input a value in the "FROM" field. The code snippet provided below demonstrates this functionality:

'email_from': fields.char('From',

help="Sender address (placeholders may be used here). If not set, the default "

"value will be the author's email alias if configured, or email address."),


To specify a different address for the reply, you can utilize the "reply_to" field:


'reply_to': fields.char('Reply-To', help="Preferred response address (placeholders may be used here)"),


By incorporating the "reply_to" field, you can set a specific address where responses should be directed.

Unique value: This approach streamlines the process for the user by automatically fetching their email address from their account, and it also provides the flexibility to set a distinct reply address if needed, enhancing communication efficiency and user experience.


0
Avatar
Annuleer
Avatar
Jozef Slivka
Beste antwoord

Hi, In fact I have the very opposite issue : when I hit SEND message in CRM app, email in client gmail is receved, but I can see a "from=user email" instead of expected "crm team alias email" 
-A. In email templates I can not find anything related to CRM or this chatter, so I could edit it
I really need to hide user email from customers email, so client will NEVER know user direct email, but RATHER ONLY a SALES TEAM alias email
Where to change it and how?
Thanks

0
Avatar
Annuleer
Avatar
Dale
Beste antwoord

Thanks for this thread. Tell me please, I want to create a template that is available from the drop down when sending a new mail by clicking the envelope icon next to the user name in the top right corner. What is the correct model to add the template to so that it appears in this drop down?

thanks

0
Avatar
Annuleer
Avatar
ymazal.business@gmail.com
Beste antwoord

Any one show is interested and fall o this question, here is how you do it in xml:

<record id="yourdirectory.yourprefered_id" model="mail.template">

<field name="email_from">info@yourcompany.com</field>

  <field name="reply_to">info@yourcompany.com</field>

  <field name="email_to">${object.model_field_representing_email}</field>

  <field name="subject">bla bla bla</field>

...

</record>

0
Avatar
Annuleer
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!

Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!

Aanmelden
Gerelateerde posts Antwoorden Weergaven Activiteit
How to disable automatic mail ? Opgelost
email v7
Avatar
Avatar
Avatar
Avatar
Avatar
7
apr. 24
46851
what is the difference between mail.message and mail.mail? Opgelost
email v7
Avatar
Avatar
Avatar
Avatar
3
aug. 24
21783
email - how to filter or prevent spam coming into OpenERP?
email v7
Avatar
Avatar
Avatar
Avatar
3
okt. 25
12148
Is there any module available for e-Mail forward?
email v7
Avatar
0
mrt. 15
4493
Best way to group customers together for a newsletter?
email v7
Avatar
Avatar
1
mrt. 15
6702
Community
  • Tutorials
  • Documentatie
  • Forum
Open Source
  • Downloaden
  • Github
  • Runbot
  • Vertalingen
Diensten
  • Odoo.sh Hosting
  • Ondersteuning
  • Upgrade
  • Gepersonaliseerde ontwikkelingen
  • Onderwijs
  • Vind een boekhouder
  • Vind een partner
  • Word een Partner
Over ons
  • Ons bedrijf
  • Merkelementen
  • Neem contact met ons op
  • Vacatures
  • Evenementen
  • Podcast
  • Blog
  • Klanten
  • Juridisch • Privacy
  • Beveiliging
الْعَرَبيّة 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 een suite van open source zakelijke apps die aan al je bedrijfsbehoeften voldoet: CRM, E-commerce, boekhouding, inventaris, kassasysteem, projectbeheer, enz.

Odoo's unieke waardepropositie is om tegelijkertijd zeer gebruiksvriendelijk en volledig geïntegreerd te zijn.

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