Updated SMS sender to use the new API instead of the deprecated one.