On an inequality by N. Trudinger and J. Moser and related elliptic equations