Open aurelien-baudet opened 5 years ago
A new configuration phase has been added. New configurers can now be created just to provide some default values only if some conditions are met (like a value of a property).
In addition to "ServiceProviderBuilder"s, an automatic configuration could be applied (and still overriden by developer): if smtp.host belongs to gmail, then the port, ssl and other parameters are automatically set.
Provide a simple automatic way to configure email sending through Gmail, Yahoo, ... It could be something like this with fluent API:
An using properties:
And nothing else to do. It will automatically configure correctly the SMTP configuration