简体   繁体   中英

django registration and sending activation email

Like the title suggest, i am having problems sending my activation email.

It gives me [Errno 61] Connection refused when i press my activate email button.

Can someone guide me on how to configure the settings?

My current settings.py

# Registration settings
ACCOUNT_ACTIVATION_DAYS = 2
EMAIL_HOST = 'localhost'
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
LOGIN_REDIRECT_URL = '/'

Also if there is a need to implement SMTP, tell me how too.

Thanks in advance! :D

The solution was to open up another terminal window and put in the command: python -m smtpd -n -c DebuggingServer localhost:1025

That would solve all things

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM