#12648: [PATCH]User send_email change from send_mail to EmailMessage
-------------------------------------+--------------------------------------
          Reporter:  galuszkak       |         Owner:  galuszkak                
                 
            Status:  reopened        |     Milestone:                           
                 
         Component:  Authentication  |       Version:  SVN                      
                 
        Resolution:                  |      Keywords:  send_mail, email, 
send_email, EmailMessage
             Stage:  Unreviewed      |     Has_patch:  1                        
                 
        Needs_docs:  0               |   Needs_tests:  0                        
                 
Needs_better_patch:  0               |  
-------------------------------------+--------------------------------------
Changes (by anonymous):

  * status:  closed => reopened
  * resolution:  invalid =>

Comment:

 Let's start from the beginning. I'm using django-registration developed by
 ubernostrum, in my django project.
 Some time ago I had a problem with activation mail. It was simple,
 some(not every) email accounts wasn't receiving activation mail. It was
 very strange so I started searching what is the problem. I found that
 sending email was handled here:
 http://bitbucket.org/ubernostrum/django-
 registration/src/tip/registration/models.py
 And this line was the problem.
 {{{
 self.user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL)
 }}}
 So I tried sending activation emails with EmailMessage. For me it was
 solution for problem, because magically emails where reaching destination
 email box(that previously don't reached that box).

 Email account from which I was sending activation links, is on the same
 server where I have my django project. My settings:

 {{{
 EMAIL_HOST = '127.0.0.1'
 EMAIL_HOST_USER = '[email protected]'
 EMAIL_HOST_PASSWORD = '*****'
 EMAIL_USE_TLS = False
 EMAIL_PORT = 25
 DEFAULT_FROM_EMAIL = '[email protected]'
 }}}

 Site is on mod_python. Hosting provider is linuxpl.com .

 If you have any question you are welcome. I think that send_email is
 buggy, I can provide more specific details if you want.

 Some people on IRC said me that they have the same problem.

 With regards
 Galuszkak

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12648#comment:5>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.

Reply via email to