• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sending mail to lotus notes server

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All;
I am very new to lotus notes and I am trying to send a email through lotus notes server but I am getting the following exception:
"4271 Password or other security violation for database"
I have installed the Lotus Notes client on my m/c ver. 5.0.3. and I am trying to connect to remote server
Here is the Code that i using
----------------------------
import lotus.domino.*;
public class SendLotusMail extends AgentBase {
public static void main(String args[]) {
String userID = "uid";
String pwd = "passwd";
String serverName = "server_name";
String mailfile = "mail_file";
try {
NotesThread.sinitThread();
String x = null;
Session session = NotesFactory.createSession(x, x, pwd);
Database db = session.getDatabase(server_name, mailfile);
Document email = db.createDocument();
email.appendItemValue("From","the junk address");
email.appendItemValue("Subject", "Test Secure E-Mail ");
email.appendItemValue("ReturnReceipt", "1");
//add attatchment
RichTextItem rtitem = email.createRichTextItem("Body");
rtitem.embedObject(
EmbeddedObject.EMBED_ATTACHMENT,
null,
"C:\\Windows\\15658.pdf",
"15658");
email.setSignOnSend(true);
email.sign();
email.send(true,"recepient mail address ");
} catch (NotesException e) {

System.out.println("Exception--->" + e.id + " " + e.text);
}
}
}
 
Mrudula Madiraju
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can someone help me???
reply
    Bookmark Topic Watch Topic
  • New Topic