PlexBulkMailer component accepts an email request for multiple recipients and then sends the underlying email message to each identified recipient. The component employs a threaded model and enables multiple SMTP servers to be configured to increase system throughput during bulk email processing. The Bulk Email component can be used for any bulk emailings.
Accept a list of recipients and a standard message. Accept a list of recipients and custom messages for each. Accept a list of recipients, a corresponding xml file for each recipient, and a standard xsl template.
Usage:
import com.plexobject.mail.bulk.*;
import java.util.*;
import java.io.*;
import java.net.*;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import javax.mail.event.*;
public class BulkTester {
//
public static void main(String[] args) throws Exception {
String from = "from@somehost.com";
String[] to = new String[] {"sm@msn.com", "asdf@yahoo.com"};
BulkEmailer bm = new BulkEmailer(new File(args[0]), -1);
bm.sendTextMessage(from, to, "subject " +
new Date(), "message text" +
new Date(), null, true);
//bm.sendTextMessage(from, to, "subject", "message text", null, false);
System.out.println("Sent completed");
}
}
Requirements:
· JRE 1.4 or newer
Product's homepage
Requirements:
· JRE 1.4 or newer