def getSMTPPort(self):
    if self.has_option('emails', 'port'):
        return self.getint('emails', 'port')
    return 25
def getSMTPPort(self):
    if self.has_option('emails', 'port'):
        return self.getint('emails', 'port')
    return 25