问题
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