Sexting is generally legal if all parties are over the age of majority and images are sent with their consent and knowledge; however, any type of sexual message that both parties have not consented to can constitute sexual harassment.
2) section 67a of IT act stipulates punishment for publishing or transmitting of material containing sexually explicit act, etc., in electronic form can be punished on first conviction with imprisonment of either description for a term which may extend to five years and with fine