[Minor] java doc in MailHandler
This commit is contained in:
parent
7c9d049d0d
commit
8ff7e83a90
|
@ -1,5 +1,7 @@
|
||||||
package li.strolch.handler.mail;
|
package li.strolch.handler.mail;
|
||||||
|
|
||||||
|
import javax.mail.internet.InternetAddress;
|
||||||
|
|
||||||
import li.strolch.agent.api.ComponentContainer;
|
import li.strolch.agent.api.ComponentContainer;
|
||||||
import li.strolch.agent.api.StrolchComponent;
|
import li.strolch.agent.api.StrolchComponent;
|
||||||
|
|
||||||
|
@ -21,8 +23,8 @@ public abstract class MailHandler extends StrolchComponent {
|
||||||
* the subject of the e-mail
|
* the subject of the e-mail
|
||||||
* @param text
|
* @param text
|
||||||
* the test of the e-mail
|
* the test of the e-mail
|
||||||
* @param recipient
|
* @param recipients
|
||||||
* the address to whom to send the e-mail
|
* the comma separated list of addresses to whom to send the e-mail see {@link InternetAddress#parse(String)}
|
||||||
*/
|
*/
|
||||||
public abstract void sendMail(String subject, String text, String recipient);
|
public abstract void sendMail(String subject, String text, String recipients);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ public class SmtpMailHandler extends MailHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void sendMail(String subject, String text, String recipient) {
|
public void sendMail(String subject, String text, String recipients) {
|
||||||
SmtpMailer.getInstance().sendMail(subject, text, recipient);
|
SmtpMailer.getInstance().sendMail(subject, text, recipients);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue