Hi Brij

I don't know if I'm helping much with the following. But just  
recently me too experienced strange problems with using send_mail.

My problem turned out to be an Apache setting (maxClassProcesses was  
too low, it gave an error reached dynamicMaxClassProcs, since  
send_mail spawns a sub-process). However, YMMV.


Try if you can send mail by using the command line (% python  
manage.py shell) with send_mail or even lower level with smtplib  
directly. This will tell you if you can reach the smtp server at all.

        >>> from django.core.mail import send_mail
        >>> send_mail('Test subject', 'test message',  
'[EMAIL PROTECTED]', ['[EMAIL PROTECTED]'])
        1
or
        >>> import smtplib
        >>> msg = 'From: [EMAIL PROTECTED]:  
[EMAIL PROTECTED]: Test subject\r\ntest message\r\n'
        >>> server = smtplib.SMTP('mail.your.smtphost.com')
        >>> server.sendmail('[EMAIL PROTECTED]',  
'[EMAIL PROTECTED]', msg)
        {}
        >>> server.quit()


HTH
dirk


On 14-jun-2007, at 14:35, Brij wrote:

> The error which i m getting is :::
> Exception Value: (10054, 'Connection reset by peer')
> Exception Location: C:\Python24\Lib\socket.py in readline, line 340
>




-----------------------------
Dirk van Oosterbosch
de Wittenstraat 225
1052 AT Amsterdam
the Netherlands

http://labs.ixopusada.com
-----------------------------



--~--~---------~--~----~------------~-------~--~----~
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