I think that it's really good that you finally feel sure enough of your feelings to lay them before her.
I think that a letter would have been good ~ but, in this day and age, I suppose a text is ok. It will certainly serve the purpose and shed a little more light on the situation for you.
Good luck!