rh-integration / IntegrationApp-Automation

Sample Integration application along with lifecycle automation
Apache License 2.0
13 stars 9 forks source link

Use camel-mail component in fuse-alert-service for sending emails #33

Open osmman opened 4 years ago

osmman commented 4 years ago

Please, use camel-mail component for sending emails because creating your own implementation is totally unnecessary.

https://camel.apache.org/components/latest/mail-component.html

redhatHameed commented 4 years ago

I used earlier this approach. for sending emails but camel-mail component checks the credential username and password during the pod deployment health check if it's not there then deployment was failing. So I made it optional by using custom email component.

osmman commented 4 years ago

I don't really understand the reason why you don't have these pieces of information on startup. Use Kubernetes Secrets or ConfigMap to inject custom configuration like email credentials.

https://access.redhat.com/documentation/en-us/red_hat_fuse/7.4/html/fuse_on_openshift_guide/integrate-spring-boot-with-kubernetes#spring-boot-externalized-configuration