jordilin committed bde4ead

connectSMTP method provided in utils setupmail, so anyone who calls it will
have already a mail notification ready to be actioned

  • Participants
  • Parent commits ec1ecb7

Comments (0)

Files changed (2)

     if options.silence and properties:
         mailAction = setup_mail(properties)
-        mailAction.connectSMTP()
         silence = True
     if options.nomailsilence:
         # silence option with no mail

File log4tailer/

     password = getpass.getpass()
     mailAction = notifications.Mail(mail_from, mail_to, hostname, username,
             password, port, ssl) 
+    mailAction.connectSMTP()
     return mailAction