Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 319
hobbes3 Avatar asked Mar 16 '12 20:03

hobbes3


1 Answers

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.

like image 143
Burhan Khalid Avatar answered Oct 25 '22 00:10

Burhan Khalid