Commons Email question: Threads and Transports

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Commons Email question: Threads and Transports

Joe Orost
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
thread)?

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

--joe orost

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]