Package com.atlassian.fisheye.spi.data

Examples of com.atlassian.fisheye.spi.data.MailMessageData


            toEmail = user.getEmail();
        }

        try {

            final MailMessageData message = new MailMessageData();

            message.setFrom(options.getFromEmail());
            message.setFromDisplayName(options.getFromName());

            message.addRecipient(toEmail);
            if (options.getReplyToEmail() != null)
            {
                // todo: api doesn't seem to support this?
            }

            message.setSubject(render(options.getSubjectTemplate(), options.getContext()));
            message.setBodyText("text/plain", render(options.getBodyTemplate(), options.getContext()));

            mailer.sendMessage(message);
        } catch (IOException e) {
            log.error("Unable to send mail", e);
        }
View Full Code Here

TOP

Related Classes of com.atlassian.fisheye.spi.data.MailMessageData

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.