Trying to text someone with a Samsung Galaxy using a MacBook without an iPhone
One possibility is using SMS. In some places you have free, web-based SMS services that will allow you to text any phone in the country for free. In other places you have to pay a small amount to be able to do so.

Another is using third party apps such as Skype, WhatsApp or Signal.