Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Is it possible opening Notes session at Websphere Portal with current user account?
Feedback Type: Question
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:





Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS