commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orost <>
Subject Commons Email question: Threads and Transports
Date Thu, 04 Aug 2005 17:05:33 GMT
Thanks for the Commons Email - it's WAY COOL!

I need to send emails to several hundred people that have subscribed to my
mailing list.
I was using the Mach5 mailer, but I've exceeded it's "free" capability, so I've
decided to roll my own.

I see when using Mach5, that it runs in 10 threads - would you recommend I do
the same thing in my Java code?

Also, should I do something to cache or reuse the Transport? - something
equivalent to:

    // to send multiple messages, we should:
    // Transport bus = session.getTransport("smtp");
    // for each message...
    //     bus.sendMessage(msg, address);
    // bus.close();

How would I do that with the Commons (and should I do it once, or once per

FYI: I'm sending a customized message to each person.

--joe orost

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message