Don’t condone it but he’s not the first or last married man to text lassies. Seems very strange to get sacked for it if as he says the woman was ‘interested’ more to come out of this I assume.
the fact the txts have ended up at HR suggests the woman wasn’t interested, or was and then changed her mind.