Moving sendPost() to the compose.html where it will be needed.