Just imagine you developed a web shop XS application on a productive HANA system, and you’d like your customers to be notified by email about changes of their sales orders.

The solution you need is sending an e-mail from the HANA XS application.

Scenario

You send a mail to your personal email account by implementing an XS Service (XSJS) via consuming HTTPS REST mail provider. (MailGun email service provider will be used for the example solution)

Prerequisites

Get a free MailGun account at http://www.mailgun.com/. Log in your MailGun account and copy your API key. You will need it for Basic authentication at step 5. Copy your MailGun subdomain. You will use your subdomain into your destination path prefix and as your mail domain and mail sender domain at step 1 and step 2.

Assigned tags

Related Blog Posts

Related Questions

I am using SAP Hana Cloud Platform to do this. However, I am unable to upload a certificate with .cer extension. Should I convert the file to .jks which is the required file type or there is another way?

This is particularly pertinent for non XSA systems, as HANA pre SPS11 is unable to communicate with Gmail servers via. SMTP now. Google have upgraded their SMTP requirements, and HANA is no longer compatible (that is, the HANA API lib $.net.Mail will no longer work with Gmail). This is an easy and super useful alternative.. if not a better option!