'Initialize an email notification manager.
:param subsystem: String describing the module this manager is
handling. Example: \'scheduler\'.'

def __init__(self, module='scheduler'):

    self.module = module
    self.email_queue = []
    self.html_email = settings.get_value('NOTIFICATION', 'html_notify_email', type=bool, default=False)
    self.from_email = settings.get_value('NOTIFICATION', 'notify_email_from', default=DEFAULT_FROM_EMAIL)
    self.grid_admin_email = settings.get_value('NOTIFICATION', 'grid_admin_email', default='')
    server = settings.get_value('EMAIL', 'smtp_server', default='localhost')
    port = settings.get_value('EMAIL', 'smtp_port', default=None)
    user = settings.get_value('EMAIL', 'smtp_user', default=None)
    password = settings.get_value('EMAIL', 'smtp_password', default=None)
    self.smtp_info = {'server': server, 'port': port, 'user': user, 'password': password}
