change template email with table