Open PPG-BrianChan opened 7 months ago
Hi @PPG-BrianChan ,
Thanks for raising this. I was able to reproduce this. I'll create a ticket for this in our backlog and update you once we have a fix.
Hey @deekshas8,
we ran into the same issue. So we would like to know if there is a "roadmap" when this'll be solved?
Greetings
Hey @deekshas8 ,
I am attempting to send mails using the destination mail service. But I am facing the same error as mentioned by others in the thread.
Kindly suggest me if there is a workaround to fix this issue.
Thanks and Regards, Paran
Dear experts,
We are attempting to send mails using the mail-client package. However,Mail destination information required such as host and port cannot be retrieved during execution. This is because in the source code https://github.com/SAP/cloud-sdk-js/blob/main/packages/mail-client/src/mail-client.ts#L54-L69, it is retrieving the values from "originalProperties", but in reality there is an additional property "destinationConfiguration" encapsulating the values.
To Reproduce
Prepare a CAP project and include the mail-client package. Pass the destination name into the function "sendMail" along with simple mail config.
Execute Execute CAP project in hybrid testing or deployed mode.
Confirm Error message will be caught.
See error Error will be logged as attached in screenshots.
Screenshots Error log:
Destination Configurations:
Used Versions:
node -v
: v18.14.2npm -v
: 9.5.0Impact / Priority We intend of making use the same package in all applications that will be sending mails but currently have to resort to a custom solution.
Affected development phase: Development
Impact: Impaired
Additional context A similar issue is raised in the comment of the blog https://blogs.sap.com/2023/02/14/connecting-on-premise-mail-destination-using-sap-cloud-sdk-javascript-version-3-on-sap-cap/ FYI the same destination can be used by SBPA.