djangosnippets.org: Latest snippets tagged with 'trap'http://djangosnippets.org/tags/trap/2010-02-20T12:45:24.768634-06:00send_mail wrapper with DEBUG email trapping
2010-02-20T12:45:24.768634-06:00udfalksohttp://djangosnippets.org/snippets/1932/<p>By using this simple wrapper instead of Django's default send_mail function, you gain the peace of mind of knowing that when settings.DEBUG == True, all the emails will be sent to you instead of the original recipient. Handy for testing.<br />
</p>
Freely redistributable