zoukankan      html  css  js  c++  java
  • [Domino]Java访问Domino邮件代码片断[2]

     

    [Domino]Java访问Domino邮件代码片断[2]

    编写者

    日期

    关键词

    郑昀@ultrapower

    2005-6-21

    Java Domino

     

    回复用户收件箱中的某一封邮件

    2个知识点:

    1:需要通过noteID来定位该邮件:

    Database dbMail = sNotes.getDatabase(sNotes.getServerName(),

                          mailfile, false);

    Document doc = dbMail.getDocumentByID(noteid);

    2:通过DocumentcreateReplyMessage方法创建回复邮件。

    代码片段:

    Database dbMail = sNotes.getDatabase(sNotes.getServerName(),

                          mailfile, false);

    Document doc = dbMail.getDocumentByID(noteid);

    if (doc != null)

    {

                           /* createReplyMessage的参数说明

                            * boolean toall

                            If true, the new document recipient list contains all the

                            recipients of the original. If false, the new document

                            recipient list contains only the sender of the original.

                            */

                           Document reply = doc.createReplyMessage(false);

     
                           Item itemSubject = doc.getFirstItem("Subject");
                              String strItemRe = "回复:" + itemSubject.getText();
                           reply.replaceItemValue("Subject",
                                   strItemRe);

                        reply.replaceItemValue("Body",

                               body);

                        reply.send(doc.getItemValueString("From"));

    }

     

    编写者

    日期

    关键词

    郑昀@ultrapower

    2005-6-21

    Java Domino

     

  • 相关阅读:
    火车头入库SQLSERVER时数据库配置的问题
    帝国CMS在封面、列表调用栏目别名的方法
    电子商务关键数字优化(线上部分,下)
    电子商务关键数字优化(线上部分,上)
    创业公司Celebrity Performance 评估名人影响力
    SQLautoReview
    互联网/电子商务数据分析师的十大误区
    Amazon Silk 你所不知道的在Kindle背后的大数据
    Nike可穿戴的大数据玩法
    [转]Decide.com是怎么做商品价格预测的
  • 原文地址:https://www.cnblogs.com/zhengyun_ustc/p/178255.html
Copyright © 2011-2022 走看看