Providing that you have the recipient logged in, you can use:
ejabberd_c2s:handle_info({send_text, Text}, StateName, StateData) ->
or even send_element(StateData, El). But that is all valid if you have recipients PID or socket.
ejabberd_router:route, may be much better because it deals with offline users.