Add generate email with pattern