Package org.fenixedu.academic.domain.util.email

Examples of org.fenixedu.academic.domain.util.email.Message


        final String body =
                BundleUtil.getString(Bundle.CANDIDATE, "label.application.recomentation.email.body", getTitle(), getName(),
                        getGenericApplication().getName(), getGenericApplication().getGenericApplicationPeriod().getTitle()
                                .getContent(), generateConfirmationLink());

        new Message(getRootDomainObject().getSystemSender(), getEmail(), subject, body);
    }
View Full Code Here


        final String body =
                BundleUtil.getString(Bundle.CANDIDATE, "label.application.recomentation.email.delete.body", getTitle(),
                        getName(), getGenericApplication().getName(), getGenericApplication().getGenericApplicationPeriod()
                                .getTitle().getContent());

        new Message(getRootDomainObject().getSystemSender(), getEmail(), subject, body);
    }
View Full Code Here

                        .getTitle().getContent());
        final String body =
                BundleUtil.getString(Bundle.CANDIDATE, "label.application.email.body", getApplicationNumber(),
                        generateConfirmationLink(), getGenericApplicationPeriod().getTitle().getContent(),
                        Unit.getInstitutionAcronym());
        new Message(getRootDomainObject().getSystemSender(), getEmail(), subject, body);
    }
View Full Code Here

                BundleUtil.getString(Bundle.CANDIDATE, "label.application.recomentation.upload.notification.email.subject");
        final String body =
                BundleUtil.getString(Bundle.CANDIDATE, "label.application.recomentation.upload.notification.email.body",
                        getRecomentation().getName(), getRecomentation().getInstitution());

        new Message(Bennu.getInstance().getSystemSender(), getRecomentation().getGenericApplication().getEmail(), subject, body);
    }
View Full Code Here

    }

    @Atomic
    public void sendEmail(final String fromSubject, final String body) {
        SystemSender systemSender = getRootDomainObject().getSystemSender();
        new Message(systemSender, systemSender.getConcreteReplyTos(), Collections.EMPTY_LIST, fromSubject, body, getEmail());
    }
View Full Code Here

            throw new DomainException("error.PhdThesisProcess.unexpected.participant.type");
        }

        private void email(String email, String subject, String body) {
            final SystemSender sender = Bennu.getInstance().getSystemSender();
            new Message(sender, sender.getConcreteReplyTos(), null, null, null, subject, body, Collections.singleton(email));
        }
View Full Code Here

        return getActive() && getFireDate() == null;
    }

    @Override
    protected void generateMessage() {
        new Message(getSender(), getReplyTos(), getRecipients(), getSubject().getContent(MultiLanguageString.pt), getBody()
                .getContent(MultiLanguageString.pt), getBccs());
    }
View Full Code Here

        }
    }

    protected void email(String email, String subject, String body) {
        final SystemSender sender = Bennu.getInstance().getSystemSender();
        new Message(sender, sender.getConcreteReplyTos(), null, null, null, subject, body, Collections.singleton(email));
    }
View Full Code Here

                .getEnd());
    }

    @Override
    protected void generateMessage() {
        new Message(getSender(), null, Collections.<Recipient> emptyList(), buildMailSubject(), buildMailBody(), getEmail());
    }
View Full Code Here

                Person person = AccessControl.getPerson();
                if (person != null) {
                    setRejector(person);
                }
                SystemSender systemSender = getRootDomainObject().getSystemSender();
                new Message(systemSender, systemSender.getConcreteReplyTos(),
                        new Recipient(UserGroup.of(getPerson().getUser())).asCollection(), BundleUtil.getString(Bundle.PERSONAL,
                                REJECTION_MAIL_SUBJECT_KEY), BundleUtil.getString(Bundle.PERSONAL, REJECTION_MAIL_BODY_KEY), "");

            }
            if (state == PhotoState.APPROVED) {
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.util.email.Message

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.