on 06-15-2011 1:44 PM
Hi,
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.
Thanks.
Hi,
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);
window.show();
window.destroyInstance();
This will open the outlook new mail window with given info, if outlook is configured in your system.
Regards,
Vishweshwara P.K.M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Swaminatan,
Use this code:
String mailString = "mailto:myMail&subject=EnterTheSubject&body=EnterTheBody";
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(mailString, "My window title");
window.show();
Best Regards,
Aldo.
Words Build Worlds, Enrique Baliño.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.