class MySMTPHandler(SMTPHandler):

    def getSubject(self, record):
        return 'My Error Format from the record dict'

def emit(self, record):
    if sendit:
        super(MySMTPHandler, self).emit(record)
Is there a way how to configure SMTPHandler in Python to do more advanced stuff?