Skip to Content

Calling Cloud Connector from XSJS to send mail

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Feb 19, 2018 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!


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.