Package org.olat.core.util.mail

Examples of org.olat.core.util.mail.MailerWithTemplate.sendMailUsingTemplateContext()


        if(template.getCpfrom()) {
          ccIdentities.add(sender);
        } else {
          ccIdentities = null
        }
        MailerResult mailerResult = mailer.sendMailUsingTemplateContext(identity, ccIdentities, null, template, sender);
        if (mailerResult.getReturnCode() != MailerResult.OK) {
          buf.append(pT.translate("email.error.send.failed", new String[] {identity.getUser().getProperty(UserConstants.EMAIL, null), identity.getName()} )).append("\n");
        }
        Tracing.logAudit("User-Deletion: Delete-email send to identity=" + identity.getName() + " with email=" + identity.getUser().getProperty(UserConstants.EMAIL, null), this.getClass());
        markSendEmailEvent(identity);
View Full Code Here


        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());
View Full Code Here

    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());
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.