Tuesday, April 24, 2012

EmailMessage hangs in windows

I have the following code:

      msg = EmailMessage ( subject       = subject,
                                         body          = body,
                                         from_email = sender,
                                         to              = receivers,
                                         bcc            = bcc
                                       )
       
        try:
            msg.send()
        except Exception, e:
            err = "Email Send Error " + str(e)
            logger.error(self.log(err))
            return False
  
        return True

This works perfectly on my linux servers, but when I run it on windows it hangs, but not right away. Sometimes I can send
4 five messages before it hangs.

Anyone have any idea what is going on?

Thanks

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

No comments:

Post a Comment