Class SendMail


  • public class SendMail
    extends Object
    This class is used to send emails
    Since:
    3.0
    Author:
    Laurent Jourdren
    • 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 provider
        logger - 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 message
        textContent - text of the message
      • sendMail

        public void sendMail​(String subject,
                             String textContent,
                             boolean error)
        Send a message.
        Parameters:
        subject - subject of the message
        textContent - text of the message
        error - the message is an error