EmailMessage hangs in windows

7 views
Skip to first unread message

CrabbyPete

unread,
Apr 24, 2012, 12:41:47 PM4/24/12
to django...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages