Hi.
Am using odoo for my website and also for my business management. Under settings am able to set up out going email server ok that when i run test , everything seems to be fine.
The problem now is when sending quotations and invoices , it shows connection lost then it shows connection restored in few seconds.
How can i solve this issue?
Regards
did you check the log entries?
MD at Mnetworks
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/usr/lib/python3/dist-packages/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 912, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1393, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1381, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/portal/wizard/portal_wizard.py", line 58, in action_apply
self.user_ids.action_apply()
File "/usr/lib/python3/dist-packages/odoo/addons/portal/wizard/portal_wizard.py", line 152, in action_apply
wizard_user.with_context(active_test=True)._send_email()
File "/usr/lib/python3/dist-packages/odoo/addons/portal/wizard/portal_wizard.py", line 190, in _send_email
template.with_context(dbname=self._cr.dbname, portal_url=portal_url, lang=lang).send_mail(wizard_line.id, force_send=True)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 288, in send_mail
mail.send(raise_exception=raise_exception)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_mail.py", line 272, in send
smtp_session.quit()
File "/usr/lib/python3.8/smtplib.py", line 988, in quit
res = self.docmd("quit")
File "/usr/lib/python3.8/smtplib.py", line 424, in docmd
self.putcmd(cmd, args)
File "/usr/lib/python3.8/smtplib.py", line 371, in putcmd
self.send(str)
File "/usr/lib/python3.8/smtplib.py", line 363, in send
raise SMTPServerDisconnected('please run connect() first')
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
smtplib.SMTPServerDisconnected: please run connect() first
MD at Mnetworks
MD at Mnetworks