Opened 6 years ago

Last modified 6 years ago

#172 assigned task

Erro ao tentar recuperar senha

Reported by: vilsonvieira Owned by: danielteia
Priority: major Milestone:
Component: #gt-cpc Version:
Keywords: Cc:

Description

Tentei recuperar minha senha agora e tive o seguinte erro:

Environment:

Request Method: POST
Request URL: http://hera.ethymos.com.br:1080/cpc/novasenha/

Django Version: 1.3
Python Version: 2.5.2
Installed Applications:
['django.contrib.auth',

'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'conta',
'meta',
'cc',
'item',
'pessoa',
'documento',
'projeto',
'contato',
'organizacao',
'inic']

Installed Middleware:
('django.middleware.common.CommonMiddleware?',

'django.contrib.sessions.middleware.SessionMiddleware?',
'django.contrib.auth.middleware.AuthenticationMiddleware?')

Traceback:
File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, *callback_args, callback_kwargs)

File "/home/marcosm/django/macambira_cpc/inic/views.py" in novasenha

  1. if enviaemail(pessoa.contato.email, 'Pedido de nova senha', msgemail ) == 1:

File "/home/marcosm/django/macambira_cpc/inic/views.py" in enviaemail

  1. if send_mail(subject,message,from_mail,[to_mail], fail_silently=False):

File "/usr/lib/python2.5/site-packages/django/core/mail/init.py" in send_mail

  1. connection=connection).send()

File "/usr/lib/python2.5/site-packages/django/core/mail/message.py" in send

  1. return self.get_connection(fail_silently).send_messages([self])

File "/usr/lib/python2.5/site-packages/django/core/mail/backends/smtp.py" in send_messages

  1. new_conn_created = self.open()

File "/usr/lib/python2.5/site-packages/django/core/mail/backends/smtp.py" in open

  1. local_hostname=DNS_NAME.get_fqdn())

File "/usr/lib/python2.5/smtplib.py" in init

  1. (code, msg) = self.connect(host, port)

File "/usr/lib/python2.5/smtplib.py" in connect

  1. for res in socket.getaddrinfo(host, port, 0, socket.SOCK_STREAM):

Exception Type: gaierror at /novasenha/
Exception Value: (-8, 'Servname not supported for ai_socktype')

Change History (1)

comment:1 Changed 6 years ago by marcosm

  • Owner changed from mquasar to danielteia
  • Status changed from new to assigned

Este erro ocorre por que não está configurado o servidor de email que será utilizado para envio de novas senhas e outras mensagens do sistema.

Qual conta e servidor de email pode ser usado para este fim? Creio que configurando isso, as mensagens devem funcionar corretamente.

Note: See TracTickets for help on using tickets.