Examples of MailerResult


Examples of org.olat.core.util.mail.MailerResult

            // add sender as CC
            ccIdentities.add(urequest.getIdentity());
          } else {
            ccIdentities = null
          }
          MailerResult mailerResult = mailer.sendMailAsSeparateMails(identitiesMoveEvent.getMovedIdentities(), ccIdentities, null, mailTemplate, null);
          MailHelper.printErrorsAndWarnings(mailerResult, getWindowControl(), urequest.getLocale());
        }
        fireEvent(urequest, Event.CHANGED_EVENT );   
        // Participant and waiting-list were changed => reload both
        projectMemberController.reloadData();
View Full Code Here

Examples of org.olat.core.util.mail.MailerResult

        if(mailTemplate.getCpfrom()) {
          ccIdentities.add(sender);
        } else {
          ccIdentities = null
        }
        MailerResult mailerResult = mailer.sendMailUsingTemplateContext(identity, ccIdentities, null, mailTemplate, sender);
        if (mailerResult.getReturnCode() == MailerResult.OK) {
          // Email sended ok => set deleteEmailDate
          for (Iterator groupIterator = ((List)identityGroupList.get(identity)).iterator(); groupIterator.hasNext();) {
            BusinessGroup group = (BusinessGroup) groupIterator.next();
            Tracing.logAudit("Group-Deletion: Delete-email send to identity=" + identity.getName() + " with email=" + identity.getUser().getProperty(UserConstants.EMAIL, null) + " for group=" + group, this.getClass());
            markSendEmailEvent(group);
View Full Code Here

Examples of org.olat.core.util.mail.MailerResult

    MailTemplate enrolledMailTemplate = this.createMailTemplate(project, enrolledIdentity, subject, body, locale );
    // TODO: cg/12.01.2010 in der Methode sendMailUsingTemplateContext wurden die Variablen nicht ersetzt (Fehler oder falsch angewendet?)
    //       als Workaround wurde die Methode sendMailAsSeparateMails verwendet
    List<Identity> enrolledIdentityList = new ArrayList<Identity>();
    enrolledIdentityList.add(enrolledIdentity);
    MailerResult mailerResult = MailerWithTemplate.getInstance().sendMailAsSeparateMails(enrolledIdentityList, null, null, enrolledMailTemplate, null);
    log.audit("ProjectBroker: sendEmail to identity.name=" + enrolledIdentity.getName() + " , mailerResult.returnCode=" + mailerResult.getReturnCode());
    return mailerResult;
  }
View Full Code Here

Examples of org.olat.core.util.mail.MailerResult

    StringBuilder identityNames = new StringBuilder();
    for (Identity identity : projectManagerList) {
      if (identityNames.length()>0) identityNames.append(",");
      identityNames.append(identity.getName());
    }
    MailerResult mailerResult = MailerWithTemplate.getInstance().sendMailAsSeparateMails(projectManagerList, null, null, enrolledMailTemplate, null);
    log.audit("ProjectBroker: sendEmailToGroup: identities=" + identityNames.toString() + " , mailerResult.returnCode=" + mailerResult.getReturnCode());
    return mailerResult;
  }
View Full Code Here

Examples of org.olat.core.util.mail.MailerResult

    StringBuilder identityNames = new StringBuilder();
    for (Identity identity : projectManagerList) {
      if (identityNames.length()>0) identityNames.append(",");
      identityNames.append(identity.getName());
    }
    MailerResult mailerResult = MailerWithTemplate.getInstance().sendMailAsSeparateMails(projectManagerList, null, null, enrolledMailTemplate, null);
    log.audit("ProjectBroker: sendEmailToGroup: identities=" + identityNames.toString() + " , mailerResult.returnCode=" + mailerResult.getReturnCode());
    return mailerResult;
  }
View Full Code Here

Examples of org.olat.core.util.mail.MailerResult

   

    // 3. Send notification mail
    MailTemplate mailTemplate = BGMailHelper.createRemoveMyselfMailTemplate(enrolledGroup, identity);
    MailerWithTemplate mailer = MailerWithTemplate.getInstance();
    MailerResult mailerResult = mailer.sendMail(identity, null, null, mailTemplate, null);
    MailHelper.printErrorsAndWarnings(mailerResult, wControl, trans.getLocale());
  }
View Full Code Here

Examples of org.olat.core.util.mail.MailerResult

   

    // 3. Send notification mail
    MailTemplate mailTemplate = BGMailHelper.createRemoveWaitinglistMailTemplate(enrolledWaitingListGroup, identity);
    MailerWithTemplate mailer = MailerWithTemplate.getInstance();
    MailerResult mailerResult = mailer.sendMail(identity, null, null, mailTemplate, null);
    MailHelper.printErrorsAndWarnings(mailerResult, wControl, trans.getLocale());
  }
View Full Code Here

Examples of org.olat.core.util.mail.MailerResult

      coursePropertyManager.updateProperty(thisTime);
    }
    // 4. Send notification mail
    MailTemplate mailTemplate = BGMailHelper.createAddMyselfMailTemplate(group, identity);
    MailerWithTemplate mailer = MailerWithTemplate.getInstance();
    MailerResult mailerResult = mailer.sendMail(identity, null, null, mailTemplate, null);
    MailHelper.printErrorsAndWarnings(mailerResult, wControl, trans.getLocale());


    return true;
  }
View Full Code Here

Examples of org.olat.core.util.mail.MailerResult

      coursePropertyManager.updateProperty(thisTime);
    }   
    // 4. Send notification mail
    MailTemplate mailTemplate = BGMailHelper.createAddWaitinglistMailTemplate(group, identity);
    MailerWithTemplate mailer = MailerWithTemplate.getInstance();
    MailerResult mailerResult = mailer.sendMail(identity, null, null, mailTemplate, null);
    MailHelper.printErrorsAndWarnings(mailerResult, wControl, trans.getLocale());

    return true;
  }
View Full Code Here

Examples of org.olat.core.util.mail.MailerResult

    if(template.getCpfrom()) {
      ccIdentities.add(sender);
    } else {
      ccIdentities = null
    }
    MailerResult mailerResult = mailer.sendMailUsingTemplateContext(identity, ccIdentities, null, template, sender);
    if (mailerResult.getReturnCode() == MailerResult.OK) {
      // Email sended ok => set deleteEmailDate
      for (Iterator repoIterator = ((List)identityRepositoryList.get(identity)).iterator(); repoIterator.hasNext();) {
        RepositoryEntry repositoryEntry = (RepositoryEntry) repoIterator.next();
        Tracing.logAudit("Repository-Deletion: Delete-email for repositoryEntry=" + repositoryEntry + "send to identity=" + identity.getName(), this.getClass());
        markSendEmailEvent(repositoryEntry);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.