def notifyModerators(self, moderators, article):
     # Moderated postings go through as long as they have an Approved
     # header, regardless of what the value is
     article.putHeader("To", ", ".join(moderators))
     return smtp.sendEmail(
         "[email protected]" + socket.gethostname(), moderators, article.body, dict(article.headers.values())
     )
Example #2
0
 def notifyModerator(self, moderator, article):
     # Moderated postings go through as long as they have an Approved
     # header, regardless of what the value is
     print 'To is ', moderator
     article.putHeader('To', moderator)
     return smtp.sendEmail(
         self.mailhost,
         '[email protected]' + socket.gethostname(),
         moderator,
         article.body,
         dict(article.headers.values())
     )