looping the mails