debugging email with django

an easy way to get django to send emails direct to stdout ( and avoid connection refused errors )

in settings.py:

EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025

and at a shell:

python -m smtpd -n -c DebuggingServer localhost:1025