Patch 1

Move file_get_contents inside loop so that fresh template is loaded each time, otherwise second recipient will receive same message as first.