I can’t speak for all women, but I personally have never objected to a random midday text that simply says, “Hi. You’re pretty.”
For me, it does get a bit old (and verge on insincere) when it happens TOO often, particularly when the guy isn’t bright enough to think of words other than “pretty.”
But for the moment, squee.