Class SendMail
- java.lang.Object
-
- fr.ens.biologie.genomique.aozan.aozan3.SendMail
-
public class SendMail extends Object
This class is used to send emails- Since:
- 3.0
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description SendMail(Configuration conf, fr.ens.biologie.genomique.kenetre.log.GenericLogger logger)
Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sendMail(EmailMessage email)
Send an email with Aozan header and footer.void
sendMail(String subject, String textContent)
Send a message.void
sendMail(String subject, String textContent, boolean error)
Send a message.
-
-
-
Constructor Detail
-
SendMail
public SendMail(Configuration conf, fr.ens.biologie.genomique.kenetre.log.GenericLogger logger) throws Aozan3Exception
Public constructor.- Parameters:
conf
- the configuration of the providerlogger
- the logger to use- Throws:
Aozan3Exception
- if an error occurs while initialize the provider
-
-
Method Detail
-
sendMail
public void sendMail(EmailMessage email)
Send an email with Aozan header and footer.- Parameters:
email
- the email message
-
sendMail
public void sendMail(String subject, String textContent)
Send a message.- Parameters:
subject
- subject of the messagetextContent
- text of the message
-
-