A national supermarket chain has been fined for breaking the law on how people’s personal information should be treated when sending marketing emails.