Monday, April 23, 2012

Re: EmailMessage hangs in Windows

Hi,

What s the error msg.. It should smtp error message.

Maybe your smtp mail server setting.what mta you use?

How many often you sent the email?

Maybe your smtp still busy processing other mail.

On Apr 24, 2012 7:42 AM, "CrabbyPete" <pete.douma@gmail.com> wrote:
I am using
from django.core.mail               import  EmailMessage

and I have the following code
msg = EmailMessage ( subject       =  subject,
                                  body          =  body,
                                  from_email = sender,
                                  to              = receivers,
                                 bcc             = bcc
                               )
       try:
           print "Mailing"
           err = msg.send( fail_silently = False )
       except Exception, e:
           err = "Email Send Error " + str(e)
           print err
       else:
           print "Mailed"

I am mailing a bunch of messages and every once in a while it hangs on
the send. I never know when, and it only happens with windows.

Any one else have this problem?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate