We prove the spectral multiplier theorem associated H=-Delta+V in R^3, where V is a real-valued function contained in the almost optimal potential class for the dispersive estimates. As an application, we show the local-in-time well- posedness of the nonlinear Schrodinger equation with potential.