Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added test email management command

  • Loading branch information...
commit d1165ea93b76c88b3664d6c7840b182018731432 1 parent 0c91e8c
@sherzberg sherzberg authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 emailer/management/commands/testemail.py
View
20 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'
Please sign in to comment.
Something went wrong with that request. Please try again.