cz.muni.fi.rtc.teacherWorkbench.importer
Class Mailer

java.lang.Object
  extended by cz.muni.fi.rtc.teacherWorkbench.importer.Mailer

public class Mailer
extends java.lang.Object


Constructor Summary
Mailer(ImporterConfiguration conf)
          Constructor
 
Method Summary
 void sendEmailAnnouncement(java.lang.String subject, java.lang.String body, java.util.Collection<ImportedPerson> receivers)
          Sends email to all receivers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mailer

public Mailer(ImporterConfiguration conf)
Constructor

Parameters:
conf - Configuration
Method Detail

sendEmailAnnouncement

public void sendEmailAnnouncement(java.lang.String subject,
                                  java.lang.String body,
                                  java.util.Collection<ImportedPerson> receivers)
                           throws ImporterException
Sends email to all receivers.
Body and subject can contain special strings which will get substituted for the current values. These are

Parameters:
subject - Email subject. Can contain special characters
body - Email body. Can contain special characters
Throws:
ImporterException - Wraps other exceptions. Thrown when arguments are not valid