Package org.fenixedu.academic.domain.util

Examples of org.fenixedu.academic.domain.util.Email


    private void createEmailBatch(final Sender sender, final Person person, final Set<String> tos, final Set<String> ccs,
            Set<Set<String>> destinationBccs) {
        if (getRootDomainObjectFromPendingRelation() != null) {
            for (final Set<String> bccs : destinationBccs) {
                if (!bccs.isEmpty()) {
                    new Email(sender.getFromName(person), sender.getFromAddress(), getReplyToAddresses(person),
                            Collections.EMPTY_SET, Collections.EMPTY_SET, bccs, this);
                }
            }
            if (!tos.isEmpty() || !ccs.isEmpty()) {
                new Email(sender.getFromName(person), sender.getFromAddress(), getReplyToAddresses(person), tos, ccs,
                        Collections.EMPTY_SET, this);
            }
            setRootDomainObjectFromPendingRelation(null);
            setSent(new DateTime());
        }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.util.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.