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/app.py”, line 61, in application
response = frappe.handler.handle()
File “/opt/bench/erpnext/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/opt/bench/erpnext/apps/frappe/frappe/handler.py”, line 56, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/opt/bench/erpnext/apps/frappe/frappe/init.py”, line 1026, in call
return fn(*args, **newargs)
File “/opt/bench/erpnext/apps/frappe/frappe/email/doctype/email_queue/email_queue.py”, line 47, in send_now
send_one(name, now=True)
File “/opt/bench/erpnext/apps/frappe/frappe/email/queue.py”, line 484, in send_one
raise e
File “/opt/bench/erpnext/apps/frappe/frappe/email/queue.py”, line 425, in send_one
smtpserver.sess.sendmail(email.sender, recipient.recipient, encode(message))
File “/opt/bench/erpnext/apps/frappe/frappe/email/smtp.py”, line 206, in sess
cint(self.port) or None)
File “/usr/lib/python3.6/smtplib.py”, line 251, in init
(code, msg) = self.connect(host, port)
File “/usr/lib/python3.6/smtplib.py”, 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.