I tried to look for many options. The closest I got was using a Django command (I am open to any other option). With Django this is the command I use: from django.core.management.base import NoArgsCommand from django.core.mail.message import EmailMessage class Command(NoArgsCommand):
And I get: SyntaxError: invalid syntax (pointing email.attach_file) I tried using attach() but still no luck. Thanks! asked 27 Nov '12, 11:00 gabon |
If that's your exact code, then you left the closing parenthesis off of the EmailMessage call. answered 27 Nov '12, 11:24 toddfiske |
Ok, the parenthesis to close the EmailMessage() is missing, embarrassing! :S answered 27 Nov '12, 11:23 gabon |