on 11-09-2023 3:46 PM
We need to send emails from Java application running on Cloud Foundry, while using a Destination of type Mail.
We used this tutorial for reference: https://help.sap.com/docs/connectivity/sap-btp-connectivity-neo/example-send-e-mails
However, when submitting the app to CF, we receive an error:
Caused by: java.lang.ClassNotFoundException: javax.mail.Authenticator
We tried adding the dependencies to .pom and as JARs, in different versions, using javax.mail and Jakarta lib - all in vain - the app does not start.
Can anyone please advise?
Please check this blog post:
Connect to an On Premise Mail Server from SAP BTP Cloud Foundry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've seen it, thanks - however I cannot utilize it. The data there is read from Session that is received from OAuth2 data - and I don't have any authorization on my app, it's totally open, so I don't have anything like this.
Moreover, I don't see there anything about using a Mail Destination.
Am I missing something?
thank you
User | Count |
---|---|
69 | |
9 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.