Generate certificates from template and send over email