Move file_get_contents inside loop

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