What the should be look like? Is there any example?

Is it at all possible to send email from local working machine?

On Fri, Jan 23, 2009 at 8:45 AM, Alex Koshelev <[email protected]> wrote:

> Try to check your EMAIL_ settings.
>
>
>
> On Fri, Jan 23, 2009 at 8:55 AM, Oleg Oltar <[email protected]> wrote:
>
>> Hi! I am getting a strange error when trying to reset, forgotten password.
>> I am using it this way
>>
>>                        # Password resend group
>>
>> (r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
>> 'django.contrib.auth.views.password_reset_confirm',
>> {'template_name':'registration/password_reset_confirm.html'}),
>>
>>                        (r'^resend/$',
>> 'django.contrib.auth.views.password_reset',
>> {'template_name':'registration/password_reset_form.html',
>> 'email_template_name':'registration/password_reset_email.html',
>> 'post_reset_redirect':'/'}),
>>                        )
>>
>>
>> The error
>>
>> Environment:
>>
>> Request Method: POST
>> Request URL: http://127.0.0.1:8000/resend/
>> Django Version: 1.0.2 final
>> Python Version: 2.5.2
>> Installed Applications:
>> ['django.contrib.auth',
>>  'django.contrib.contenttypes',
>>  'django.contrib.sessions',
>>  'django.contrib.sites',
>>  'loginregister.loginreg']
>> Installed Middleware:
>> ('django.middleware.common.CommonMiddleware',
>>  'django.contrib.sessions.middleware.SessionMiddleware',
>>  'django.contrib.auth.middleware.AuthenticationMiddleware')
>>
>>
>> Traceback:
>> File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py"
>> in get_response
>>   86.                 response = callback(request, *callback_args,
>> **callback_kwargs)
>> File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/views.py"
>> in password_reset
>>   92.             form.save(**opts)
>> File "/usr/local/lib/python2.5/site-packages/django/contrib/auth/forms.py"
>> in save
>>   135.                 t.render(Context(c)), None, [user.email])
>> File "/usr/local/lib/python2.5/site-packages/django/core/mail.py" in
>> send_mail
>>   345.                         connection=connection).send()
>> File "/usr/local/lib/python2.5/site-packages/django/core/mail.py" in send
>>   271.         return
>> self.get_connection(fail_silently).send_messages([self])
>> File "/usr/local/lib/python2.5/site-packages/django/core/mail.py" in
>> send_messages
>>   166.         new_conn_created = self.open()
>> File "/usr/local/lib/python2.5/site-packages/django/core/mail.py" in open
>>   131.
>>  local_hostname=DNS_NAME.get_fqdn())
>> File "/usr/local/lib/python2.5/smtplib.py" in __init__
>>   244.             (code, msg) = self.connect(host, port)
>> File "/usr/local/lib/python2.5/smtplib.py" in connect
>>   310.             raise socket.error, msg
>>
>> Exception Type: error at /resend/
>> Exception Value: (49, "Can't assign requested address")
>>
>>
>> Can you please help me to understand the problem?
>>
>> Thanks,
>> Oleg
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to