def METHOD_NAME(args=None):
    """
    Parse arguments and send an email based on them.
    """
    o = SendmailOptions()
    try:
        o.parseOptions(args)
    except UsageError as e:
        raise SystemExit(e)
    else:
        from twisted.python import log
        log.startLogging(sys.stdout)
        result = sendmail(
            o["username"],
            o["password"],
            o["from-address"],
            o["to-address"],
            o["message"],
            o["smtp-host"],
            o["smtp-port"],
        )
        result.addCallbacks(cbSentMessage, ebSentMessage)
        reactor.run()