Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

SMTPServerDisconnected: Connection unexpectedly closed

By
Roger
on 11/28/13, 1:36 PM 7,068 views

Hi,

I've got some issues with SMTP.

In mail settings :

  • Smtp server: smtp.zoho.com
  • Port: 465
  • Security: SSL/TLS
  • User: account@mydomain.com
  • Password : *******

Test connexion button -> Connection test succeeded

In my account preferences > Email : account@mydomain.com

After sending an email, there is in the logs :

SMTPServerDisconnected: Connection unexpectedly closed Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_mail_server.py", line 463, in send_email

I succeed to send mails with a php script with same config on the same server.

  • Question 1: what is wrong with my configuration ?
  • Question 2: why there is no distinction between emails sent and email in error in web interface ?

Can you please send me complate traceback...?

Serpent Consulting Services Pvt. Ltd.
on 11/30/13, 3:40 AM

The traceback was : > 2013-12-02 10:52:27,369 29708 ERROR mydomain openerp.addons.base.ir.ir_mail_server: Échec de l'envoi du courriel via le serveur SMTP 'smtp.zoho.com'.

> SMTPServerDisconnected: Connection unexpectedly closed

> Traceback (most recent call last):

> File "/usr/lib/pymodules/python2.7/openerp/addons/base/ir/ir_mail_server.py", line 463, in send_email smtp.sendmail(smtp_from, smtp_to_list, message.as_string())

> File "/usr/lib/python2.7/smtplib.py", line 736, in sendmail self.rset()

> File "/usr/lib/python2.7/smtplib.py", line 460, in rset return self.doc

Roger
on 12/2/13, 7:03 AM
0
Roger
On 12/2/13, 7:02 AM

Domain Alias was set to mydomain.com. When set to 127.0.0.1 it works.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 11/28/13, 1:36 PM
Seen: 7068 times
Last updated: 3/16/15, 8:10 AM