Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django-registration can't set the "from" email address for authentication email [closed]

i've got django-registration setup and working with my application. I'm on django 1.1 and using the latest django-registration, 0.8 alpha.
in case it is relevant, i'm using the fcgi method to deploy and the django-registration app is deployed in a separate folder. I simply add the containing folder to python path. i.e. in settings.py of my app i do

import sys
sys.path.append('/path/to/django-registration-parent-folder')

in my settings file i have also set

DEFAULT_FROM_USER = '[email protected] used'

When django registration sends out the activation email, however, it continues to be from

webmaster@localhost

the only way i was able to change this was by changing the actual code inside of django-registration. i.e. in models.py line 254:

# self.user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL)
self.user.email_user(subject, message, '[email protected] used')

Can anybody enlighten me as to why DEFAULT_FROM_EMAIL in the settings file of my app is not being used when sending activation emails?

thanks in advance

like image 763
w-- Avatar asked May 23 '11 07:05

w--


1 Answers

A typo, you set DEFAULT_FROM_USER in your settings, but it should be DEFAULT_FROM_EMAIL.

like image 145
Torsten Engelbrecht Avatar answered Oct 04 '22 17:10

Torsten Engelbrecht