How to send email - SAPUI5

99封情书 提交于 2019-12-14 03:32:42

问题


I am trying to send sample email in SAPUI5. I have used sap.m.URLHelper.triggerEmail(["dummy@mail.com"], ["sample Subject"], ["Hi"]);. But it is not working. I have also tried using window.top.location = "mailto:" + email + "&subject=" + subject + "&body=" + message;. But no luck.


回答1:


Try this:

    sap.m.URLHelper.triggerEmail("dummy@mail.com", "sample Subject", "Hi");

It should be without the [ ] because the parameters that triggerEmail expects are of type string



来源:https://stackoverflow.com/questions/38458414/how-to-send-email-sapui5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!