def METHOD_NAME(message=None):
    url = "https://{0}/_matrix/client/r0/rooms/{1}/send/m.room.message/{2}?access_token={3}".format(
        settings.MATRIX_SERVER, settings.MATRIX_ROOM, time.time(), settings.MATRIX_API_TOKEN
    )
    logger.info("Sending matrix message: " + message)
    logger.info("Sending matrix message to url: " + url)
    jsonMessage = {
        "msgtype": "m.text",
        "format": "org.matrix.custom.html",
        "body": message,
        "formatted_body": message,
    }
    headers = CaseInsensitiveDict({"Content-Type": "application/json"})
    try:
        r = requests.put(url, data=json.dumps(jsonMessage), headers=headers)
        r.raise_for_status()
    except Exception as error:
        logger.exception(f"Error Sending Matrix message: {error}")
        return False
    return True