#NEWLINE# def login( self , password ) : #NEWLINE# #INDENT# '\n        Login to the SMTP server using password. `login` only needs to be manually run when the\n        connection to the SMTP server was closed by the user.\n        ' #NEWLINE# self . smtp = smtplib . SMTP ( self . host , self . port , ** self . kwargs ) #NEWLINE# self . smtp . set_debuglevel ( self . debuglevel ) #NEWLINE# if self . starttls : #NEWLINE# #INDENT# self . smtp . ehlo ( ) #NEWLINE# if ( self . starttls is True ) : #NEWLINE# #INDENT# self . smtp . starttls ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . smtp . starttls ( ** self . starttls ) #NEWLINE# #UNINDENT# self . smtp . ehlo ( ) #NEWLINE# #UNINDENT# self . is_closed = False #NEWLINE# if ( not self . smtp_skip_login ) : #NEWLINE# #INDENT# password = self . _handle_password ( password ) #NEWLINE# self . smtp . login ( self . user , password )