 |
|
 |
Subject: Is it possible opening Notes session at Websphere Portal with current user account? |
 |
 |
 |
Product Area: Security |
 |
Technical Area: Application Development |
 |
Platform: Windows |
 |
Release: 8.5 |
 |
Reproducible: Not applicable |
 |
 |
 |
 |
Hi,
I will add emailing option to my portlet application with following code part. Is it possible to open notes session with current portal user account instead of Admin? Single sign on between Domino and Portal is activated. I know the current user account but I can not handle its password. I don't want to ask it to his/her every time when they want to send email...I'm not sure here is the right place to ask this either...
Thanks in any way...
try {
session = NotesFactory.createSession("dominoserver",
"Admin Admin/Company", "password");
Database db = session.getDatabase("dominoserver", "Application\\test.nsf");
Document mailDoc = db
.getDocumentByUNID("E91A57BBFD1A7571C22579F20050A82B");
Document replyDoc = mailDoc.createReplyMessage(false);
RichTextItem responseBody = (RichTextItem) replyDoc
.getFirstItem("Body");
responseBody.appendText((String) getRichTextEditor1().getValue());
replyDoc.replaceItemValue("Subject", "test portal");
replyDoc.replaceItemValue("DeliveryReport", "T");
replyDoc.replaceItemValue("ReturnReceipt", "1");
replyDoc.send(false, "user@company.com");
replyDoc.save(true, true, false);
}
catch (NotesException e1) {
e1.printStackTrace();
}
return "";
 
Feedback number WEBB8VAANS created by ~Denise Chutoogenettu on 06/15/2012

Status: Open
Comments:

|
|  |
|