Skip to Content
avatar image
Former Member

$.net.Mail() API in HANA XSA: Invalid smtp settings. Host and port are mandatory.

Hi,

I created an net.Mail() API using XSJSLIB for triggering mail services passing the sender and recipient details as well as the mail content. I am getting the following error in the application console attached in the below images:

I tried configuring the SAP HANA XS administration tool with the

URL: http://<WebServerHost>:80<SAPHANAinstance>/sap/hana/xs/admin/

Still I get the same error "

Invalid smtp settings. Host and port are mandatory.

". I enabled and configured the mailserver in /etc/postfix/main.cf file. The email works from root OS level but it does not work from HANA XSA application API.

Please help how to fix this SMTP error issue which I am getting from the XSJS -> XSJSLIB services.

The $.net.Mail() API works fine in HANA XS Classic, but it is not working in HANA XS Advanced. I read the documentation of HANA XS Advanced and mentioned it will work similar to XSJS Classic.

Please anyone help on this issue as I am really stuck in the middle of the task I cannot proceed further.

Thanks a lot in advance for the solution.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers