'Parse integer parameters, open the message file, and make sure all
required parameters have been specified.'

def postOptions(self):

    try:
        self['smtp-port'] = int(self['smtp-port'])
    except ValueError:
        raise UsageError('--smtp-port    argument    must    be    an    integer.')
    if (self['username'] is None):
        raise UsageError('Must    specify    authentication    username    with    --username')
    if (self['password'] is None):
        raise UsageError('Must    specify    authentication    password    with    --password')
    if (self['from-address'] is None):
        raise UsageError('Must    specify    from    address    with    --from-address')
    if (self['to-address'] is None):
        raise UsageError('Must    specify    from    address    with    --to-address')
    if (self['smtp-host'] is None):
        raise UsageError('Must    specify    smtp    host    with    --smtp-host')
    if (self['message'] is None):
        raise UsageError('Must    specify    a    message    file    to    send    with    --message')
    try:
        self['message'] = open(self['message'])
    except Exception as e:
        raise UsageError(e)
