Package org.dmlite.util.config

Examples of org.dmlite.util.config.EmailConfig


      Applicants applicants = (Applicants) modelContext.getEntities();
      Applicant applicant = (Applicant) modelContext.getEntity();
      applicants.getErrors().empty();
      if (applicants.add(applicant)) {
        App app = viewContext.getApp();
        EmailConfig emailConfig = app.getEmailConfig();

        String applicantMessageStart = "...please copy the following confirmation number: ";
        Long applicantConfirmationNumber = applicant.getOid()
            .getUniqueNumber();
        String applicantMessageFinish = ", and paste it in the Confirmation Number field of the Login page.";
View Full Code Here


    this.envoyerMail();
  }
 
  public void envoyerMail()
  {
    final EmailConfig emailConfig = ((DmContext) this.dbContext).getEmailConfig();
    
    try
    {
      emailConfig.send(this.message_dest, this.message_objet, this.message_corps);
      //Changement du mot de passe
      try
      {
        this.newCompte.setPassword(this.newPassword);
        this.comptes.update(this.currentCompte, this.newCompte);
View Full Code Here

   * Finds an email configuration.
   *
   * @return email configuration
   */
  private EmailConfig findEmailConfig() {
    EmailConfig config = null;
    Class referenceClass = this.getClass();
    try {
      PropertiesLocator propertiesLocator = new PropertiesLocator(
          referenceClass, DM_CONFIG_PROPERTIES_FILE_NAME);
      String classDirName = propertiesLocator
View Full Code Here

TOP

Related Classes of org.dmlite.util.config.EmailConfig

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.