class Emailer {

    public boolean sendEmailCC(String cc, String subject, String body, List<File> attachments) throws AddressException, MessagingException {

		if (webappAndMailHelper.isEmailFunctionalityDisabled()) return false;
		
		InternetAddress mailFromAddress = new InternetAddress(mailfrom);
		InternetAddress[] recipientsCC = InternetAddress.parse(cc);
		File[] attachmentsArray = attachmentListToArry(attachments);
		MailerResult result = new MailerResult();
		
		MimeMessage msg = webappAndMailHelper.createMessage(mailFromAddress, null, recipientsCC, null, body + footer, subject, attachmentsArray, result);
		webappAndMailHelper.send(msg, result);
		//TODO:discuss why is the MailerResult not used here?
        return true;
    }

    public  Emailer(MailTemplate mailTemplate);
      Emailer(MailTemplate mailTemplate, MailPackageStaticDependenciesWrapper facadeToWebappAndMailhelper);
    public  Emailer(OLATPrincipal senderPrincipal, boolean tryInstitutionalEmail, MailTemplate mailTemplate);
      Emailer(OLATPrincipal senderPrincipal, boolean tryInstitutionalEmail, MailTemplate mailTemplate, MailPackageStaticDependenciesWrapper facadeToWebappAndMailhelper);

}