Suggestions on Messaging

My app should be have the ability for non-logged in users to talk to logged-in users.
after a validation either via OTP on phone number or email validation.

Any suggestions or pointers would be appreciated.