in case someone runs into this in the future, i had to set the default
from email to get it to work.


DEFAULT_FROM_EMAIL = 'sam...@domain.com'

nicer error messages would have been, well nice.

On Wed, Nov 17, 2010 at 9:52 AM, Johannes Nel <johannes....@gmail.com> wrote:
> ok, I decided to switch to one of my SMTP servers I know works and
> which I send email from on my local machine via a java app I have.
>
> now I get a very non descriptive error
>
> Environment:
>
> Request Method: POST
> Request URL: http://localhost:8000/accounts/register/
> Django Version: 1.2.3
> Python Version: 2.7.0
> Installed Applications:
> ['django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.sites',
>  'django.contrib.messages',
>  'registration',
>  'django.contrib.admin']
> Installed Middleware:
> ('django.middleware.common.CommonMiddleware',
>  'django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware')
>
>
> Traceback:
> File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/handlers/base.py"
> in get_response
>  100.                     response = callback(request,
> *callback_args, **callback_kwargs)
> File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django_registration-0.7-py2.7.egg/registration/views.py"
> in register
>  148.             new_user = form.save(profile_callback=profile_callback)
> File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django_registration-0.7-py2.7.egg/registration/forms.py"
> in save
>  87.
>   profile_callback=profile_callback)
> File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django_registration-0.7-py2.7.egg/registration/models.py"
> in create_inactive_user
>  127.             send_mail(subject, message,
> settings.DEFAULT_FROM_EMAIL, [new_user.email])
> File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/mail/__init__.py"
> in send_mail
>  61.                         connection=connection).send()
> File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/mail/message.py"
> in send
>  175.         return self.get_connection(fail_silently).send_messages([self])
> File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/mail/backends/smtp.py"
> in send_messages
>  85.                 sent = self._send(message)
> File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/mail/backends/smtp.py"
> in _send
>  101.                     email_message.message().as_string())
> File 
> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/smtplib.py"
> in sendmail
>  712.             raise SMTPRecipientsRefused(senderrs)
>
> Exception Type: SMTPRecipientsRefused at /accounts/register/
> Exception Value: {u'xxx.x...@gmail.com': (451, 'Temporary local
> problem - please try later')}
>
> temporary local problem!!! SAY WHAT! this is not me using the postfix
> aliases I created.
>
> On Wed, Nov 17, 2010 at 9:33 AM, Johannes Nel <johannes....@gmail.com> wrote:
>> Hi
>>
>> My dev enviroment is OS x 10.5
>> I grabbed the django registration application and configured it to
>> email via my local host spooler. After which I setup postfix alias's
>> for some dummy domains, these I tested from command line and my emails
>> are coming through. Then i proceed to get the register application to
>> try and send an email, so i can verify that things are working, but I
>> get a socket error saying that it could not connect. I double checked
>> and I have opened port 465 on my machine (by default I block
>> everything), any advice on where to look next?
>>
>> johan
>>
>> --
>> j:pn
>> \\no comment
>>
>
>
>
> --
> j:pn
> \\no comment
>



-- 
j:pn
\\no comment

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

Reply via email to