Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Calling the default mail client "mailto:" from webdynpro application - java


I want to call the default mail client from webdynpro java.

I came across "LinktoURL" button which can be used for it.

But i need to call the mail client from a normal Button click, since it has the logic to get me the datas for sending the mail to.

I am using Netweaver 7.0.

Share your ideas.


Former Member
Former Member replied


Try this code in the onAction method of the button,

String toUsers  = " to users Email Ids";
String subject = "Subject";
String ccEmailIds = " cc users Email Ids";

String url = "mailto:" + toUsers + "?subject=" + subject + "&cc=" + ccEmailIds;
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url);;

This will open the outlook new mail window with given info, if outlook is configured in your system.


Vishweshwara P.K.M.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question