Skip to Content
Menu
This question has been flagged
1680 Views

Hello,


I'm setting outgoing mail server and have message " Connection Test Succeeded",

but when sending mail i have error:

Odoo Server Error
Traceback (most recent call last):
  File "/opt/odoo12/odoo/http.py", line 654, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo12/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo12/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo12/odoo/http.py", line 696, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo12/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo12/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo12/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo12/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo12/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo12/odoo/addons/web/controllers/main.py", line 966, in call_button
    action = self._call_kw(model, method, args, {})
  File "/opt/odoo12/odoo/addons/web/controllers/main.py", line 954, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo12/odoo/api.py", line 749, in call_kw
    return _call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo12/odoo/api.py", line 736, in _call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo12/odoo/addons/mail/models/mail_mail.py", line 269, in send
    smtp_session.quit()
  File "/usr/lib64/python3.6/smtplib.py", line 984, in quit
    res = self.docmd("quit")
  File "/usr/lib64/python3.6/smtplib.py", line 420, in docmd
    self.putcmd(cmd, args)
  File "/usr/lib64/python3.6/smtplib.py", line 367, in putcmd
    self.send(str)
  File "/usr/lib64/python3.6/smtplib.py", line 359, in send
    raise SMTPServerDisconnected('please run connect() first')
smtplib.SMTPServerDisconnected: please run connect() first


I using gmail smtp and gmail email sender


How to solving this problem?

Thanks





Avatar
Discard

Please check with your SMTP provider.

Related Posts Replies Views Activity
1
Jun 21
1406
1
Dec 19
3632
1
Jun 17
7384
1
Nov 19
4685
0
Nov 24
111