Package tilda.utils

Class MailUtil


  • public class MailUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.apache.logging.log4j.Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      MailUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean send​(java.lang.String smtpInfo, java.lang.String from, java.lang.String password, java.lang.String[] to, java.lang.String[] cc, java.lang.String[] bcc, java.lang.String subject, java.lang.String message, boolean urgent, boolean confidential)
      Sends an HTML email
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        protected static final org.apache.logging.log4j.Logger LOG
    • Constructor Detail

      • MailUtil

        public MailUtil()
    • Method Detail

      • send

        public static boolean send​(java.lang.String smtpInfo,
                                   java.lang.String from,
                                   java.lang.String password,
                                   java.lang.String[] to,
                                   java.lang.String[] cc,
                                   java.lang.String[] bcc,
                                   java.lang.String subject,
                                   java.lang.String message,
                                   boolean urgent,
                                   boolean confidential)
        Sends an HTML email
        Parameters:
        SmtpInfo - A string such as smtp.mydomain.com:422:ssl to connect to an SMTP server
        From - the user ID used to send emails from
        Password - The password for the account we send emails from
        To - Destination email(s)
        Cc - CC email(s)
        Bcc - BCC emails(s)
        Subject - The Subject
        Message - The message (HTML allowed)
        Urgent - Whether to send the message as urgent or not.
        Confidential - Whether to send the message as confidential or not.
        Returns: