Send emails in a loop