# ejabberd 2.1
$ ejabberdctl send_message_chat alice@example.org bob@example.org "hi, how are you?"

# ejabberd 15.09
$ ejabberdctl send_message chat alice@example.org bob@example.org "title" "Hi, how are you?"