Permalink
Browse files

added test email management command

  • Loading branch information...
sherzberg committed Jun 22, 2011
1 parent 0c91e8c commit d1165ea93b76c88b3664d6c7840b182018731432
Showing with 20 additions and 0 deletions.
  1. +20 −0 emailer/management/commands/testemail.py
@@ -0,0 +1,20 @@
+
+
+from django.core.management.base import BaseCommand
+
+from emailer.utils import send_raw_email
+
+class Command(BaseCommand):
+ args = "None"
+ help = 'Process emails with SimpleProcessor'
+
+ def handle(self, *args, **options):
+
+ to_address = 'spencer.herzberg@gmail.com'
+ from_address = 'test@gmail.com'
+ subject = 'one off test'
+
+ html = '<p>Hello</p>lksjdlfkdj'
+
+ send_raw_email(to_address, from_address, subject, html)
+ print 'test sent'

0 comments on commit d1165ea

Please sign in to comment.