Added checks for curl and when the message is accepted

Some improvements to the senderscript.sh