logo

New Response

« Return to the blog entry

You are replying to:

  1. Hi

    Every one is discussing about how to insert HTML content...but i am having problem with pulling the HTML mail content(Tables,links..) from domino to my java based application.

    This is part of my code. I am not getting whats wrong with this.I am getting only normal text.

    Database database = connection.getConnectionBean().getDatabase();

    CMail mail= null;

    Document document = database.getDocumentByID(id);

    database.setFolderReferencesEnabled(true);

    mail= new CMail(connection);

    mail.setId(document.getNoteID());

    mail.setContentLength(String.valueOf(document.getSize()));

    mail.setHttpUrl(document.getHttpURL());

    Enumeration enume = document.getItems().elements();

    while(enume.hasMoreElements()){

    Item item = (Item)enume.nextElement();

    if(item.getName().equalsIgnoreCase(Mail.PROPERTY_MAIL_BODY)){

    mail.setBody(body.getValueString());

    Please help on this...

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: