Email SMTP Issue

erpnext 11.1.10
frappe 11.1.10
Python 3.6

When I go to save email domain I get this error:

It was working fine with previuos version, It seems like doesn’t like the empty port value when I send email I get:

Something went wrong
Server Error: Please check your server logs or contact tech support.
Traceback (most recent call last):
File “/opt/bench/erpnext/apps/frappe/frappe/”, line 61, in application
response = frappe.handler.handle()
File “/opt/bench/erpnext/apps/frappe/frappe/”, line 21, in handle
data = execute_cmd(cmd)
File “/opt/bench/erpnext/apps/frappe/frappe/”, line 56, in execute_cmd
return, **frappe.form_dict)
File “/opt/bench/erpnext/apps/frappe/frappe/”, line 1026, in call
return fn(*args, **newargs)
File “/opt/bench/erpnext/apps/frappe/frappe/email/doctype/email_queue/”, line 47, in send_now
send_one(name, now=True)
File “/opt/bench/erpnext/apps/frappe/frappe/email/”, line 484, in send_one
raise e
File “/opt/bench/erpnext/apps/frappe/frappe/email/”, line 425, in send_one
smtpserver.sess.sendmail(email.sender, recipient.recipient, encode(message))
File “/opt/bench/erpnext/apps/frappe/frappe/email/”, line 206, in sess
cint(self.port) or None)
File “/usr/lib/python3.6/”, line 251, in init
(code, msg) = self.connect(host, port)
File “/usr/lib/python3.6/”, line 324, in connect
if not port and (host.find(‘:’) == host.rfind(‘:’)):
TypeError: a bytes-like object is required, not ‘str’

You will need to enter complete details with Port for it to accept it. It doesn’t accept incomplete SMTP details.

Thanks raj
I’m using a Godaddy account and I have tried all my choices for port available but I’m getting same error all the time.