Examples of EmailSenderConfiguration


Examples of com.griddynamics.genesis.notification.plugin.EmailSenderConfiguration

        String smtpPassword = config.get(NotificationPluginConfig.smtpPassword);
        Boolean useTls = Boolean.parseBoolean(config.get(NotificationPluginConfig.useTls));
        Boolean useSSL = Boolean.parseBoolean(config.get(NotificationPluginConfig.useSSL));
        Integer connectTimeout = getIntParameter(config, NotificationPluginConfig.connectTimeout, Integer.MAX_VALUE);
        Integer smtpTimeout = getIntParameter(config, NotificationPluginConfig.smtpTimeout, Integer.MAX_VALUE);
        return new EmailSenderConfiguration(senderName, senderEmail, smtpHost, smtpPort,
                smtpUsername, smtpPassword, useTls, connectTimeout, smtpTimeout, useSSL);
    }
View Full Code Here

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

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

    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

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

    }

    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

Examples of org.wso2.carbon.email.sender.api.EmailSenderConfiguration

    }

    public void sendPaymentReceivedEmail(String toAddress, String emailFile,
                                         Map<String,String> mailParameters) throws Exception {
        String emailTemplateFile = CarbonUtils.getCarbonConfigDirPath() + "/" + emailFile;
        EmailSenderConfiguration senderConfiguration =
                EmailSenderConfiguration.loadEmailSenderConfiguration(emailTemplateFile);
        EmailSender sender = new EmailSender(senderConfiguration);
        sender.sendEmail(toAddress, mailParameters);
    }
View Full Code Here

Examples of org.wso2.carbon.email.sender.api.EmailSenderConfiguration

        if (confFileName == null) {
            confFileName = DEFAULT_CONF_FILENAME;
        }
        confFileName = CarbonUtils.getCarbonConfigDirPath() + "/" + confFileName;

        EmailSenderConfiguration emailSenderConfig =
                EmailSenderConfiguration.loadEmailSenderConfiguration(confFileName);
        sender = new EmailSender(emailSenderConfig);

        String reportMailFileName = DEFAULT_REPORT_MAIL_FILENAME;
        reportMailFileName = CarbonUtils.getCarbonConfigDirPath() + "/" + reportMailFileName;

        EmailSenderConfiguration reportEmailSenderConfig =
                EmailSenderConfiguration.loadEmailSenderConfiguration(reportMailFileName);
        reportMailSender = new EmailSender(reportEmailSenderConfig);

    }
View Full Code Here

Examples of org.wso2.carbon.email.sender.api.EmailSenderConfiguration

            tenantPersistor = new DefaultTenantPersistor();
            bundleContext.registerService(TenantPersistor.class.getName(), tenantPersistor, null);
            // setting the success message config
            String confFilename = CarbonUtils.getCarbonConfigDirPath() +
                    "/email-registration-complete.xml";
            EmailSenderConfiguration successMsgConfig =
                    EmailSenderConfiguration.loadEmailSenderConfiguration(confFilename);
            successMsgSender = new EmailSender(successMsgConfig);

            loadSuperTenantNotificationEmailConfig();
View Full Code Here

Examples of org.wso2.carbon.email.sender.api.EmailSenderConfiguration

     */
    private void loadSuperTenantNotificationEmailConfig() {
        // Tenant Registration Email Configurations
        String tenantRegistrationEmailConfFile = CarbonUtils.getCarbonConfigDirPath() +
                                                "/email-new-tenant-registration.xml";
        EmailSenderConfiguration newTenantRegistrationEmailConf =
                EmailSenderConfiguration.loadEmailSenderConfiguration(
                        tenantRegistrationEmailConfFile);
        tenantCreationNotifier = new EmailSender(newTenantRegistrationEmailConf);

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

Examples of org.wso2.carbon.email.sender.api.EmailSenderConfiguration


    private void initPasswordResetEmailSender() {
        String passwordResetConfigFileName = CarbonUtils.getCarbonConfigDirPath() +
                                            "/email-password-reset.xml";
        EmailSenderConfiguration passwordResetMsgConfig =
                EmailSenderConfiguration.loadEmailSenderConfiguration(passwordResetConfigFileName);
        PasswordUtil.setPasswordResetMsgSender(new EmailSender(passwordResetMsgConfig));
    }
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.