Package org.jresearch.gossip.mail

Examples of org.jresearch.gossip.mail.MailQueue.push()


                            profile.getPassword(), siteUrl.toString(),
                            config.get(IConst.CONFIG.SITE_NAME) };

                    MailQueue queue = (MailQueue) session.getServletContext()
                            .getAttribute(IConst.CONTEXT.MAIL_QUEUE);
                    queue.push(new MailMessage(messages.getMessage(
                            "mails.NEW_ACCOUNT", messArgs), messages
                            .getMessage("mails.NEW_USER_SUBJ", config
                                    .get(IConst.CONFIG.SITE_NAME)), config
                            .get(IConst.CONFIG.ADMINMAIL), messages
                            .getMessage("mails.FORUM_ADMIN"), newuser.getInfo()
View Full Code Here


                while (it.hasNext()) {
                    Subscriber s = (Subscriber) it.next();
                    if (!guard.checkBan(s.getEmail(), BanType.EMAIL)) {
                        messArgs[0] = HtmlCodec.encode(s.getName());

                        queue.push(new MailMessage(messages.getMessage(
                                "mails.NEW_MESSAGE", messArgs), messages
                                .getMessage("mails.NEW_MESSAGE_SUBJ"), config
                                .get(IConst.CONFIG.ADMINMAIL), messages
                                .getMessage("mails.FORUM_ADMIN"), s.getEmail(),
                                s.getName()));
View Full Code Here

                        Configurator.getInstance().get(IConst.CONFIG.SITE_NAME)
                    };

                MailQueue queue = (MailQueue) session.getServletContext()
                                                     .getAttribute(IConst.CONTEXT.MAIL_QUEUE);
                queue.push(new MailMessage(messages.getMessage(
                            "mails.NEW_PASSWORD", messArgs),
                        messages.getMessage("global.FORGOTPASS"),
                        Configurator.getInstance().get(IConst.CONFIG.ADMINMAIL),
                        messages.getMessage("mails.FORUM_ADMIN"),
                        updateduser.getInfo().getEmail(), updateduser.getName()));
View Full Code Here

                NamedValue nv = (NamedValue) it.next();

                if (!guard.checkBan(nv.getValue(), BanType.EMAIL)
                        && !user.getName().equals(nv.getName())) {
                    messArgs[0] = nv.getName();
                    queue.push(new MailMessage(messages.getMessage(
                            "mails.ADMIN_MAIL", messArgs),
                            samForm.getSubject(), Configurator.getInstance()
                                    .get(IConst.CONFIG.ADMINMAIL), user
                                    .getName(), nv.getValue(), nv.getName()));
                }
View Full Code Here

                        actUrl.toString(), siteUrl.toString(),
                        config.get(IConst.CONFIG.SITE_NAME), delUrl.toString() };

                MailQueue queue = (MailQueue) session.getServletContext()
                        .getAttribute(IConst.CONTEXT.MAIL_QUEUE);
                queue.push(new MailMessage(messages.getMessage(
                        "mails.CONFIRM_ACCOUNT", messArgs), messages
                        .getMessage("mails.CONFIRM_ACCOUNT_SUBJ", config
                                .get(IConst.CONFIG.SITE_NAME)), config
                        .get(IConst.CONFIG.ADMINMAIL), messages
                        .getMessage("mails.FORUM_ADMIN"), prForm.getEmail(),
View Full Code Here

                Object[] messArgs = new Object[] { newuser.getName(), tempPass,
                        siteUrl.toString(), config.get(IConst.CONFIG.SITE_NAME) };

                MailQueue queue = (MailQueue) session.getServletContext()
                        .getAttribute(IConst.CONTEXT.MAIL_QUEUE);
                queue.push(new MailMessage(messages.getMessage(
                        "mails.NEW_ACCOUNT", messArgs), messages.getMessage(
                        "mails.NEW_USER_SUBJ", config
                                .get(IConst.CONFIG.SITE_NAME)), config
                        .get(IConst.CONFIG.ADMINMAIL), messages
                        .getMessage("mails.FORUM_ADMIN"), newuser.getInfo()
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.