New legislation aims to squash text spam