Package com.atlassian.mail

Examples of com.atlassian.mail.Email


            Map<String,Object> context = newHashMap(options.getContext());
            context.put("toFullName", toName);

            SMTPMailServer server = MailFactory.getServerManager().getDefaultSMTPMailServer();
            Email email = new Email(toEmail);
            email.setFrom(options.getFromEmail());
            email.setFromName(options.getFromName());
            email.setSubject(render(options.getSubjectTemplate(), context));
            email.setBody(render(options.getBodyTemplate(), context));
            if (options.getReplyToEmail() != null)
            {
                email.setReplyTo(options.getReplyToEmail());
            }
            server.send(email);

        }
        catch (MailException e)
View Full Code Here


        }

        try {
            PageContext pc = (PageContext) renderContext;

            Email mail = new Email("plightbo@gmail.com");
            mail.setFrom("cvs@webwork.dev.java.net");
            mail.setFromName("OpenSymphony Wiki");
            mail.setSubject("Bad Snippet");
            String append = "";
            if (e != null) {
                msg = "Exception: " + e.getMessage();
                StringWriter writer = new StringWriter();
                e.printStackTrace(new PrintWriter(writer));
                append = writer.toString();
            }
            mail.setBody(msg + ":\n" +
                    "\n" +
                    " Page: " + "http://wiki.opensymphony.com" + pc.getEntity().getUrlPath() + "\n" +
                    " URL:  " + url + "\n" +
                    " ID:   " + id + "\n" +
                    "\n" +
View Full Code Here

        }

        try {
            PageContext pc = (PageContext) renderContext;

            Email mail = new Email("plightbo@gmail.com");
            mail.setFrom("cvs@webwork.dev.java.net");
            mail.setFromName("OpenSymphony Wiki");
            mail.setSubject("Bad Snippet");
            String append = "";
            if (e != null) {
                msg = "Exception: " + e.getMessage();
                StringWriter writer = new StringWriter();
                e.printStackTrace(new PrintWriter(writer));
                append = writer.toString();
            }
            mail.setBody(msg + ":\n" +
                    "\n" +
                    " Page: " + "http://wiki.opensymphony.com" + pc.getEntity().getUrlPath() + "\n" +
                    " URL:  " + url + "\n" +
                    " ID:   " + id + "\n" +
                    "\n" +
View Full Code Here

TOP

Related Classes of com.atlassian.mail.Email

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.