Examples of sendMail()


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

        public Step execute(UserRequest ureq2, WindowControl control, StepsRunContext runContext) {
          MailTemplate mailtemplate = (MailTemplate)runContext.get("mailtemplate");
          //fetch data from runContext and send eMail with it
          MailerWithTemplate mailer = MailerWithTemplate.getInstance();
          Identity replyto = (Identity)runContext.get("replyto");
          MailerResult mr = mailer.sendMail(ureq2.getIdentity(), null, null, mailtemplate, replyto);
          logAudit("DRUCKEREI-TEMPLATE-ERSTELLT", null);
          if(mr.getReturnCode() == MailerResult.OK){
            return StepsMainRunController.DONE_UNCHANGED;
          }else{
            return Step.NOSTEP;
View Full Code Here

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

            }
            // send a notification mail if available
            MailTemplate mailTemplate = BGMailHelper.createWaitinglistTransferMailTemplate(group, ureqIdentity);
            if (mailTemplate != null) {
              MailerWithTemplate mailer = MailerWithTemplate.getInstance();
              MailerResult mailerResult = mailer.sendMail(firstWaitingListIdentity, null, null, mailTemplate, null);
              // Does not report errors to current screen because this is the identity who triggered the transfer
              Tracing.logWarn("Could not send WaitinglistTransferMail for identity=" + firstWaitingListIdentity.getName() , BusinessGroupManagerImpl.class);
            }           
            transferNotDone = false;
          }
View Full Code Here

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

   

    // 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());
  }

  public void doCancelEnrollmentInWaitingList(final Identity identity, final BusinessGroup enrolledWaitingListGroup, final ENCourseNode enNode,
      final CoursePropertyManager coursePropertyManager, WindowControl wControl, Translator trans) {
View Full Code Here

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

   

    // 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());
  }

  // Helper Methods
  // ////////////////
View Full Code Here

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

      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.MailerWithTemplate.sendMail()

      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
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.