added retry logic and additional logging for sendSmsPage