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( "twisted@" + socket.gethostname(), moderators, article.body, dict(article.headers.values()) )
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, 'twisted-news@' + socket.gethostname(), moderator, article.body, dict(article.headers.values()))
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( 'twisted@' + socket.gethostname(), moderators, article.body, dict(article.headers.values()) )
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, 'twisted-news@' + socket.gethostname(), moderator, article.body, dict(article.headers.values()) )