'Send an SMTP code with a message.'

def sendCode(self, code, message=''):

    lines = message.splitlines()
    lastline = lines[(-1):]
    for line in lines[:(-1)]:
        self.sendLine((networkString(('%3.3d-' % (code,))) + line))
    self.sendLine((networkString(('%3.3d    ' % (code,))) + ((lastline and lastline[0]) or '')))
