class EmailChannel(Channel): def __init__(self, config, email_to): self.dispatcher = SmtpDispatcher(config) self.email_to = email_to def sendMessage(self, message): self.dispatcher.send(self.email_to, message.get_subject(), \ message.get_body())
def __init__(self, config, email_to): self.dispatcher = SmtpDispatcher(config) self.email_to = email_to