cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to send the automatic emails in sapui5?

Former Member
4,894

Well i am working on enhancement of some projects, i need to incorporate the email functionality in my code, It should send the automatic emails on click of the send button without opening the outlook. I tried with the "sap.m.URLHelper" methods but it was redirecting me to the outlook page. Can anyone tell me that is it feasible to send the automatic emails in sapui5?

Accepted Solutions (1)

Accepted Solutions (1)

sreehari_vpillai
Active Contributor

Hi Nagarjun,

You can not trigger an email from UI5. But, you can have a look into the "mailto" option available in HTML, but the same will open default mail client . I suggest, you develop the logic in the back end(if you are using netweaver gateway) and then call the service with necessary input from UI. If you are using SAP HANA, wait for SP09 release. SAP is planning SMTP set up in xs.

Sree

Former Member
0 Likes

Hi Sreehari,

     well i being a sapui5 front end developer, i basically don't have access to the netweaver gateway, I was given to work only on front end. So is there any other way out other that writing necessary logic in the back end (like jquery, ajax or even javascript). please advice.

sreehari_vpillai
Active Contributor
0 Likes

In my knowledge, No. We can not do this in UI. Even if it is possible, we should not do this .

Check this post

Former Member
0 Likes

thanks Sreehari for the valuable information...

Answers (2)

Answers (2)

Former Member
0 Likes

Hi benjamin,

     Thanks for the link, its very useful. Well actually I was not granted any privileges to either download any such domains or getting the API's, rather i was just given a front end design part in which i need to send the mails without opening the outlook, is there any way out like in the code in sapui5 to send the mails at the back end without opening the outlook? please adivce.

regards,

Nagarjun

Former Member
0 Likes

Hi,

I don't know any solution

regards

Benjamin

Former Member
0 Likes

Hi Nagarjun,

I tried this in HANA SPS08:

It works perfect for sending emails !

But you have to setup HTTPS first:

Best regards

Benjamin