def METHOD_NAME(lichess_username, subject, text, priority=0, max_retries=5, timeout=1800):
    url = '%s/lichessapi/inbox/%s?priority=%s&max_retries=%s' % (
        settings.API_WORKER_HOST, lichess_username, priority, max_retries)
    post_data = {'text': '%s\n%s' % (subject, text)}
    result = _apicall_with_error_parsing(url, timeout, post_data=post_data)
    if result != 'ok':
        logger.error('Error sending mail: %s' % result)