Hi sir@KenWhitesell Thanks for your response, I’m getting this error log,
…
Environment:
Request Method: POST
Request URL: https://portfolio.service-shakil.com/
Django Version: 3.2.6
Python Version: 3.7.10
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'portfolio_shakil_app']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback (most recent call last):
File "/home/services/virtualenv/portfolio-shakil/3.7/lib/python3.7/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/home/services/virtualenv/portfolio-shakil/3.7/lib/python3.7/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/services/portfolio-shakil/portfolio_shakil_app/views.py", line 31, in index
send_mail(data['subject'], message, 'shakil.cse.uoda@gmail.com', ['shakil.gd13@gmail.com'], fail_silently=False, auth_user='None', auth_password=None, connection=None, html_message=None)
File "/home/services/virtualenv/portfolio-shakil/3.7/lib/python3.7/site-packages/django/core/mail/__init__.py", line 61, in send_mail
return mail.send()
File "/home/services/virtualenv/portfolio-shakil/3.7/lib/python3.7/site-packages/django/core/mail/message.py", line 284, in send
return self.get_connection(fail_silently).send_messages([self])
File "/home/services/virtualenv/portfolio-shakil/3.7/lib/python3.7/site-packages/django/core/mail/backends/smtp.py", line 102, in send_messages
new_conn_created = self.open()
File "/home/services/virtualenv/portfolio-shakil/3.7/lib/python3.7/site-packages/django/core/mail/backends/smtp.py", line 62, in open
self.connection = self.connection_class(self.host, self.port, **connection_params)
File "/opt/alt/python37/lib64/python3.7/smtplib.py", line 251, in __init__
(code, msg) = self.connect(host, port)
File "/opt/alt/python37/lib64/python3.7/smtplib.py", line 336, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/opt/alt/python37/lib64/python3.7/smtplib.py", line 307, in _get_socket
self.source_address)
File "/opt/alt/python37/lib64/python3.7/socket.py", line 728, in create_connection
raise err
File "/opt/alt/python37/lib64/python3.7/socket.py", line 716, in create_connection
sock.connect(sa)
Exception Type: ConnectionRefusedError at /
Exception Value: [Errno 111] Connection refused