Package com.im.imjutil.email

Examples of com.im.imjutil.email.EmailSender


   * @param config A configuracao do sender do email
   * @param emails Um ou mais emails a serem enviados
   */
  public static void sendEmail(Properties config, Email... emails) {
    if (!Validator.isEmpty(emails)) {
      EmailSender sender;
      if (config != null && !config.isEmpty()) {
        sender = new EmailSender(config);
      } else {
        sender = new EmailSender();
      }
      for (Email email : emails) {
        sender.add(email);
      }
      sender.send();
    }
  }
View Full Code Here

TOP

Related Classes of com.im.imjutil.email.EmailSender

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.