Package org.apache.stratos.email.sender.api

Examples of org.apache.stratos.email.sender.api.EmailSenderConfiguration


        // Tenant Registration Email Configurations
        String tenantRegistrationEmailConfFile =
                CarbonUtils.getCarbonConfigDirPath() + File.separator +
                        StratosConstants.EMAIL_CONFIG + File.separator +
                        "email-new-tenant-registration.xml";
        EmailSenderConfiguration newTenantRegistrationEmailConf =
                EmailSenderConfiguration.loadEmailSenderConfiguration(
                        tenantRegistrationEmailConfFile);
        tenantCreationNotifier = new EmailSender(newTenantRegistrationEmailConf);

        // Tenant Activation Email Configurations
        String tenantActivationEmailConfFile =
                CarbonUtils.getCarbonConfigDirPath() + File.separator +
                        StratosConstants.EMAIL_CONFIG + File.separator +
                        "email-new-tenant-activation.xml";
        EmailSenderConfiguration newTenantActivationEmailConf =
                EmailSenderConfiguration
                        .loadEmailSenderConfiguration(tenantActivationEmailConfFile);
        tenantActivationNotifier = new EmailSender(newTenantActivationEmailConf);
    }
View Full Code Here


    private static void initTenantActivatedEmailSender() {
        String confFilename =
                CarbonUtils.getCarbonConfigDirPath() + File.separator +
                        StratosConstants.EMAIL_CONFIG + File.separator +
                        "email-registration-complete.xml";
        EmailSenderConfiguration successMsgConfig =
                EmailSenderConfiguration.loadEmailSenderConfiguration(confFilename);
        successMsgSender = new EmailSender(successMsgConfig);
    }
View Full Code Here

    }

    private static void initPasswordResetEmailSender() {
        String passwordResetConfigFileName = CarbonUtils.getCarbonConfigDirPath()+ File.separator +
                StratosConstants.EMAIL_CONFIG + File.separator + "email-password-reset.xml";
        EmailSenderConfiguration passwordResetMsgConfig =
            EmailSenderConfiguration.loadEmailSenderConfiguration(passwordResetConfigFileName);
        passwordResetMsgSender = new EmailSender(passwordResetMsgConfig);
    }
View Full Code Here

TOP

Related Classes of org.apache.stratos.email.sender.api.EmailSenderConfiguration

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.