Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

Cannot send email out using own smtp

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
8 Réponses
50561 Vues
Avatar
Jessie

Hi all,

I have installed openerp-allinone-setup-7.0-latest in windows server 2008 R2.

I have configured the outgoing email servers and Test Connection. The message “Connection test succeeded! Everything seems properly set up!” but I failed to send out an email. May I know what is the problem?

Should I modify the configuration in openerp-server.conf as below?

specify the SMTP email address for sending email

email_from = False

specify the SMTP server for sending email

smtp_server = localhost

specify the SMTP port

smtp_port = 25

specify the SMTP server support SSL or not

smtp_ssl = False

specify the SMTP username for sending email

smtp_user = False

specify the SMTP password for sending email

smtp_password = False

Many thanks.

0
Avatar
Ignorer
sridhar

@ Jessie Goto Settings--> General Settings --> Configure the Outgoing Email Server --> create new--> Description: Gmail, smtp server: smtp.gmail.com, Smtp port: 465, Debugging marked, connection security: SSL/TLS, Gmail username, password, now click Test connection, result is Connection test succeeded! Everything seems properly set up! . check it.

Vaibhav

I have done this all, but still not able to go ahead, please suggest something else. I am able to see all the sent mail details in LOGS.

Avatar
Ahmed Said Mostafa Koko
Meilleure réponse

check this link will help you

https://support.microsoft.com/en-us/office/pop-imap-and-smtp-settings-8361e398-8af4-4e97-b147-6c6c4ac95353

0
Avatar
Ignorer
Avatar
Christian Twinckle
Meilleure réponse

In setting > technical > email > outgoing mail server :

try to configure it with :

Smtp server: smtp.gmail.com

Smtp port: 465

Connection Security: SSL/TLS

Enable debugging mode and provide your username: user@gmail.com and password.

Now save it and click Test connection.

Result: Connection test succeeded!Everything seems properly set up!

Now go to Messaging menu in and click on Compose a new message and send a message.

Hope this works :) .

Regards,

3
Avatar
Ignorer
Avatar
Justin Kintzele
Meilleure réponse

I was able to get past this error by populating the "Email" field in the company information for the company I have setup. Just mouse over the company icon in the upper-left hand side and click "Edit Company data". When the company information form appears fill in an email address on the right hand side of the form. This email address field is used for the sending address when creating a new user. When creating a new user before this information has been populated a misleading error is displayed on the page that "Cannot send email: No outbound email servers are defined...", but this is not accurate. This error is displayed even when outbound SMTP servers have been configured. A full write-up of this can be found under bug 1160819.

1
Avatar
Ignorer
Sascha Pfeiffer

Thank you very much!

Avatar
Bhavin Vekariya
Meilleure réponse

Helllo, @jessie


check this link will help you.

https://www.odoo.com/forum/help-1/how-to-connect-odoo-to-google-smtp-without-enabling-the-less-secure-apps-access-205557

0
Avatar
Ignorer
Avatar
sridhar
Meilleure réponse

@ Jessie Goto Settings--> General Settings --> Configure the Outgoing Email Server --> create new--> Description: Gmail, smtp server: smtp.gmail.com, Smtp port: 465, Debugging marked, connection security: SSL/TLS, Gmail username, password, now click Test connection, result is Connection test succeeded! Everything seems properly set up! . check it.

0
Avatar
Ignorer
Avatar
Tim Ingalls
Meilleure réponse

I fixed this for my installation. It seems that there is something broken possibly in /usr/lib/python2.7/dist-packages/openerp/addons/mail/mail_mail.py or /usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_mail_server.py that doesn't allow getting the smtp_user variable.

I saw the following error in my log file (my email addresses and domain names have been edited to make them generic):

"MailDeliveryException: (u'Mail delivery failed', u'Mail delivery failed via SMTP server \'mail.mydomain.com\'.\nSMTPRecipientsRefused: {\'myname@mydomain.com\': (550, \'Verification failed for <postmaster-odoo@mydomain.com>\\nNo Such User Here"\\nSender verify failed\')}')"

If it doesn't get the smtp_user and if the variable for mail.catchall.alias is not set (as noted in line 372 of /usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_mail_server.py), it will put in "postmaster-odoo" as the user in the from address, i.e, postmaster-odoo@mydomain.com.

So, for a work-around, I just edited /usr/lib/python2.7/dist-packages/openerp/addons/base/ir/ir_mail_server.py line 379 and changed "postmaster-odoo" to "admin", since my SMTP user mail account is admin@mydomain.com. For your case, just change it to whatever the user part of the email address is. It will get the domain correctly put in there.

So, change this:

get_param = self.pool['ir.config_parameter'].get_param
        postmaster = get_param(cr, SUPERUSER_ID, 'mail.catchall.alias',
                               default='postmaster-odoo',
                               context=context,)
        domain = get_param(cr, SUPERUSER_ID, 'mail.catchall.domain', context=context)
        if postmaster and domain:
            return '%s@%s' % (postmaster, domain)


to this:

get_param = self.pool['ir.config_parameter'].get_param
        postmaster = get_param(cr, SUPERUSER_ID, 'mail.catchall.alias',
                               default='admin',
                               context=context,)
        domain = get_param(cr, SUPERUSER_ID, 'mail.catchall.domain', context=context)
        if postmaster and domain:
            return '%s@%s' % (postmaster, domain)

 I hope this solves it for someone.

0
Avatar
Ignorer
Avatar
Jessie
Auteur Meilleure réponse

Hi,

Thanks for help.

I successfully send an email out if compose a new message but I cannot send an invitation email (Users -> Send an invitation email). The error message is as below although i already configure the outgoing email.

Cannot send email: no outgoing email server configured. You can configure it under Settings/General Settings.

Thanks.

Regards, Jessie

-1
Avatar
Ignorer
Justin Kintzele

I am having this same problem. When I go to "General Settings" the "Configure outgoing email servers" link takes me to where I have already setup the outgoing servers, and have testing the connection successfully... But when I go to send a new user an invitation I get the same error that Jessie is getting. I do not see where else to configure/select the outgoing email server that I have defined for this company.

paras

I am facing same issue. unable to invite but am able to send messages... Please suggest..

P Mittal

Even I am facing the same problem. Connection Test succeeds when configuring SMTP (I did it with Amazon SES SMTP and then saved it), but when I try to add a user it says that no Outgoing SMTP Server is configured.

Justin Kintzele

You must populate the "Email" field in the company information form for the company you have setup in your system. The error message is misleading and should be more specific. What it should say is "There is no email address to use for the 'From:' address, please update the Email address information for your company."

Serge Segbefia

I did populate the Email field for my company but I'm still getting that misleading error, even I tested successsfully the configuration of the outgoing mail. Anyone's got another clue that can help on the case? Thanx

Serge Segbefia

I did populate the Email field for my company but I'm still getting that misleading error, even I tested successsfully the configuration of the outgoing mail. Anyone's got another clue that can help on the case? Thanx

Ahmed elbarbary

did any one find the solution for this issue ? i face the same problem and i didn't find how to fix it .

Avatar
Ahmed elbarbary
Meilleure réponse

did any one find the solution of that error ? i face same problem 

-1
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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