Thanks Will,
Found it here;
http://code.djangoproject.com/browser/django/trunk/django/test/utils.py#L50

That does look about what I am hoping to do, not so sure about monkey
patching the core though.

Basically, assuming django's send_mail is the standard most apps use, I want
to be able to hook into that and handle all my applications email_sending
how I wish. Be that through using django-mailer or something else.

Possible use cases could be;

   - A Queue email system like django-mailer
   - Adding in my own logging for emails sent
   - Take emails to mean something else, like actually going to SMS


I think the more hooks django gives you into replacing/customising like this
the better. I might go and see how hard it would be to patch...

Cheers,
Dougal


---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/



2009/5/10 Will Hardy <e.willha...@gmail.com>

>
> The test runner does something similar if I remember correctly, have a
> look in django.test.utils and see if you can make something useful out
> of that.
>
> Cheers,
>
> Will
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to