Added platform env to send_text