On Thu, Apr 2, 2009 at 5:42 PM, ChrisR <robthech...@gmail.com> wrote:
> Where is that code supposed to live? How do you actually send it? > I've seen a few things that imply you did it from the Python API? > Probably the easiest thing to do is create an admin action for it [1]. I just recently wrote this, so here is (snippets of) my code [2]. The send_mail method does exactly as it says, it sends mail with subject, message, from, to some recepients. TiNo [1] http://docs.djangoproject.com/en/dev/ref/contrib/admin/actions/#ref-contrib-admin-actions [2] http://dpaste.com/22969/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---