It depends on different factors. Nokia, for example, allows since MIDP 2.0.1 for trusted 3rd party domains to configure the application to allow always sending SMS. See
here. But in general it depends on vendor, device, etc. You will not find a solution that will work everywhere equally and out-of-the-box.