mail.py
branchstable
changeset 7879 9aae456abab5
parent 7815 2a164a9cf81c
child 8056 8909800a8c51
--- a/mail.py	Tue Sep 27 16:04:30 2011 +0200
+++ b/mail.py	Wed Sep 28 09:27:42 2011 +0200
@@ -21,10 +21,10 @@
 
 from base64 import b64encode, b64decode
 from time import time
-from email.MIMEMultipart import MIMEMultipart
-from email.MIMEText import MIMEText
-from email.MIMEImage import MIMEImage
-from email.Header import Header
+from email.mime.multipart import MIMEMultipart
+from email.mime.text import MIMEText
+from email.mime.image import MIMEImage
+from email.header import Header
 try:
     from socket import gethostname
 except ImportError:
@@ -156,6 +156,10 @@
 
     msgid_timestamp = True
 
+    # to be defined on concrete sub-classes
+    content = None # body of the mail
+    message = None # action verb of the subject
+
     # this is usually the method to call
     def render_and_send(self, **kwargs):
         """generate and send an email message for this view"""