Using the factory pattern to create different emails based on input parameters

Using the factory pattern to create different emails based on input parameters