Skip to Content

Calling Cloud Connector from XSJS to send mail

Feb 15 at 08:35 PM


avatar image

Hi All,

I have a requirement to call the Hana cloud connector from XSJS. Please let me know is it possible. The requirement is to sent mail from HANA xsjs through the sap cloud connector where the intranet mail server details are configured.

P.S : The intranet mail server cannot accesses as there is issue in whitelisting the IP ranges hence have to follow this approach.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ivan Mirisola
Feb 19 at 12:37 PM

Hi Velraj,

Is your HANA box sitting in SCP or On-Premise?

If your HANA box is On-Premise, there is no sense on routing SMTP protocol through Cloud Connector. All you need to do is to call the SMTP server address directly. If it is not available to a HANA Box (not white-listed) because your server is an external resource, than you need to ask the administrator to white-list it or route the mail thru a trusted SMTP server (this is an option in SAP ABAP systems, take a look here and here).

If you HANA box is on SCP and you SMTP service is running On-Premise, then you may use Cloud Connector >= version 2.10. This version has a TCP configuration that could be used as forwarder to your local SMTP service (check this blog - even though this shows the config for SCI, you may use it as well for HANA XSJS programs). For HANA, you do it as usual referring the destination this way, except you use the virtual hostname and port as defined in the Could Connector.

Hope this helps!


10 |10000 characters needed characters left characters exceeded