Search code examples
pythondjangoemailsmtpdjango-registration

How do I test sending an email with Django registration on a local computer (Mac 10.7)?


I never tried sending emails programmatically before. Do I need to set up a SMTP server on my local machine or something? Or can I use someone else's SMTP server (maybe Gmail's)?

Everytime Django registration is trying to send an email I get the error [Errno 61] Connection refused.

Here is the traceback. And a partial screenshot of the error screen:

I would appreciate any introductory explanations or beginner tutorials with Django and emails. Thanks!


Solution

  • The basics of email sending are detailed quite well in the documentation. For development purposes - a dummy backend is provided; it basically acts like a email server so you can validate your email sending logic.