Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

Sending email with Hana Cloud

$
0
0

Hello Community,

 

my problem is to send emails with an sap account.

 

I followed this tutorial with an gmail account and it works fine.

https://help.hana.ondemand.com/help/frameset.htm?e70a574cbb57101494a781920e3c9d64.html

 

Now i want to use as the mail destination the sap email provider.

 

String host = "mail.sap.corp";
Properties properties = System.getProperties();

properties.setProperty("mail.smtp.host", host);

properties.setProperty("mail.smtp.starttls.enable", "true");

properties.setProperty("mail.user", sapemail@sap.com);

properties.setProperty("mail.smtp.port", "25");

properties.setProperty("mail.transport.protocol", "smtp");

 

When i run the programm it says "Could not connect to SMTP host: mail.sap.corp, port: 25".

 

Do you have any idea?

 

BR,

Mike


Viewing all articles
Browse latest Browse all 3285

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>