Ejemplo n.º 1
0
 /**
  * Send a HTML message asynchronously with the attachments associated to the message . The message
  * is queued until a daemon thread send all awaiting messages
  *
  * @param strRecipientsTo The list of the main recipients email.Every recipient must be separated
  *     by the mail separator defined in config.properties
  * @param strSenderName The sender name.
  * @param strSenderEmail The sender email address.
  * @param strSubject The message subject.
  * @param strMessage The message.
  * @param urlsAttachement The List of UrlAttachement Object, containing the URL of attachments
  *     associated with their content-location.
  */
 public static void sendMailMultipartHtml(
     String strRecipientsTo,
     String strSenderName,
     String strSenderEmail,
     String strSubject,
     String strMessage,
     List<UrlAttachment> urlsAttachement) {
   sendMailMultipartHtml(
       strRecipientsTo,
       null,
       null,
       strSenderName,
       strSenderEmail,
       strSubject,
       strMessage,
       urlsAttachement,
       null);
 }
Ejemplo n.º 2
0
 /**
  * Send a HTML message asynchronously with the attachments associated to the message and attached
  * files . The message is queued until a daemon thread send all awaiting messages
  *
  * @param strRecipientsTo The list of the main recipients email.Every recipient must be separated
  *     by the mail separator defined in config.properties
  * @param strRecipientsCc The recipients list of the carbon copies .
  * @param strRecipientsBcc The recipients list of the blind carbon copies .
  * @param strSenderName The sender name.
  * @param strSenderEmail The sender email address.
  * @param strSubject The message subject.
  * @param strMessage The message.
  * @param urlsAttachement The List of UrlAttachement Object, containing the URL of attachments
  *     associated with their content-location
  * @param filesAttachement The list of attached files.
  */
 public static void sendMailMultipartHtml(
     String strRecipientsTo,
     String strRecipientsCc,
     String strRecipientsBcc,
     String strSenderName,
     String strSenderEmail,
     String strSubject,
     String strMessage,
     List<UrlAttachment> urlsAttachement,
     List<FileAttachment> filesAttachement) {
   sendMailMultipartHtml(
       strRecipientsTo,
       strRecipientsCc,
       strRecipientsBcc,
       strSenderName,
       strSenderEmail,
       strSubject,
       strMessage,
       urlsAttachement,
       filesAttachement,
       false);
 }