859e4c8 Move where the smtp object is instanciated

Authored and Committed by pingou 7 years ago
    Move where the smtp object is instanciated
    
    This should still helps us not running into socket error when running pagure
    without a SMTP server configured while still allowing us to keep the one
    connection per notification to send approach (and not one connection per
    email sent).
    
        
file modified
+11 -11