How far has the Sexual Harassment law really went?

Lets say a man sends a woman a picture of his penis on the internet once, is this viable in court as sexual harassment?