Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide configurers for mainly used service providers #78

Open
aurelien-baudet opened this issue Jun 3, 2019 · 1 comment
Open

Provide configurers for mainly used service providers #78

aurelien-baudet opened this issue Jun 3, 2019 · 1 comment

Comments

@aurelien-baudet
Copy link
Member

Provide a simple automatic way to configure email sending through Gmail, Yahoo, ...
It could be something like this with fluent API:

.email()
  .gmail()
    .account()
      .username()
      .applicationPassword()

An using properties:

ogham.email.gmail.account.username=
ogham.email.gmail.account.application-password=

And nothing else to do. It will automatically configure correctly the SMTP configuration

@aurelien-baudet
Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant