cancel
Showing results for 
Search instead for 
Did you mean: 

Send mail service not working

naveenvishal
Contributor

Hi, 

I have replicated the blog (Connecting On Premise Mail Destination and Sending... - SAP Community) for sending mail from CAP application but facing the below error. I have setup destination mail and steps as suggested.

Can you please suggest what the issue could be?

naveenvishal_0-1717043105172.png

 

 

View Entire Topic
MioYasutake
Active Contributor

@naveenvishal 

The OData service is expecting a jwt token to be passed. Try generating a jwt token using the credentials of the xsuaa service and setting to the Authorization header in the below format.

Authorization : Bearer <token>