If you realize that you have used casual language, apologize and rephrase your message in a more formal way.