If you don't know each other its ok to be informal If you're the same age. But if you talk with boss, with teacher and the reason of your communication don't related with personal life you should be formal.