#NEWLINE# def __init__( self , config ) : #NEWLINE# #INDENT# 'Override init to make SMTP-settings check' #NEWLINE# self . use_starttls = config . get ( 'use_starttls' , True ) #NEWLINE# self . use_ssl = config . get ( 'use_ssl' , False ) #NEWLINE# self . fromaddr = config [ 'from_email' ] #NEWLINE# self . fromuser = config . get ( 'from_user' , self . fromaddr ) #NEWLINE# self . frompwd = self [ 'from_pwd' ] #NEWLINE# if ( sys . version_info [ 0 ] == 2 ) : #NEWLINE# #INDENT# self . fromuser = self . fromuser . encode ( 'utf-8' ) #NEWLINE# self . frompwd = self . frompwd . encode ( 'utf-8' ) #NEWLINE# #UNINDENT# self . host = config [ 'from_smtp_host' ] #NEWLINE# self . port = config . get ( 'from_smtp_port' , 587 ) #NEWLINE# self . toaddr = config [ 'to_email' ] #NEWLINE# self . login_required = ( self . fromuser and config [ 'from_pwd' ] ) #NEWLINE# super ( EmailNotifier , self ) . __init__ ( config )