2016-07-19 44 views
-1

我正嘗試在SAPUI5中發送示例電子郵件。我已經使用sap.m.URLHelper.triggerEmail(["[email protected]"], ["sample Subject"], ["Hi"]);。但它不起作用。我也嘗試使用window.top.location = "mailto:" + email + "&subject=" + subject + "&body=" + message;。但沒有運氣。如何發送電子郵件 - SAPUI5

Below is what i am getting

enter image description here

enter image description here

回答

1

試試這個:

sap.m.URLHelper.triggerEmail("[email protected]", "sample Subject", "Hi"); 

應該沒有[],因爲triggerEmail預計爲string類型

+0

的@參數@Ajay我試過但sti問題是否存在!!我爲我的問題添加了截圖。請參閱。 – Hari

+0

奇怪的是,它應該像Ajay提到的那樣工作......查看這個工作示例:https://sapui5.hana.ondemand.com/explored.html#/sample/sap.m.sample.UrlHelper/preview – Qualiture

+0

@Qualiture同樣的錯誤也出現在這個例子中。我正在隱身模式下投放。這是否導致問題? – Hari