Package com.centraview.mail

Examples of com.centraview.mail.MailLocalHome


   *
   */
  public boolean simpleMessage(int individualID, MailMessageVO mailMessageVO) throws NamingException,CreateException, SendFailedException, MessagingException
  {
      InitialContext ic = CVUtility.getInitialContext();
      MailLocalHome home = (MailLocalHome)ic.lookup("local/Mail");
      MailLocal remote = (MailLocal)home.create();
      remote.setDataSource(dataSource);
      boolean sendFlag = remote.simpleMessage(individualID,mailMessageVO);
      return sendFlag;
  } // end public
View Full Code Here


  public String sendPTEmail(int individualId, int accountID, ArrayList to, String subject, ArrayList content, MailMessageVO messageVO)
  {
    String errorMessage = "";
    try {
      InitialContext ic = CVUtility.getInitialContext();
      MailLocalHome home = (MailLocalHome)ic.lookup("local/Mail");
      MailLocal remote = home.create();
      remote.setDataSource(dataSource);

      messageVO.setEmailAccountID(accountID);

      MailAccountVO accountVO = remote.getMailAccountVO(accountID);
View Full Code Here

TOP

Related Classes of com.centraview.mail.MailLocalHome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.