added for each loops and splits to planned use, in the mailer.