commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Angus" <>
Subject RE: [Net] : benefits of commons Net SMTP implementation vs javax.mail?
Date Tue, 11 Mar 2003 11:45:34 GMT
I'd agree with Daniels summary,

I've used Java Mail and commons Net SMTP client, Java Mail is good but it is also big and
pretty fully of stuff most folks never need.
In Java Mail Sun have produced a comprehensive API for mail clients of all conceivable flavours,
one which attempts to comply with dozens of RFC's and behave intelligently under odd conditions,
but if all you want to do is dump simple messages into an outgoing gateway commons Net is
small, simple fast and effective.

For example James uses Java Mail for an increasing number of tasks, and an incresing number
of James classes are implemented as extensions or wrappers on Java Mail classes (James is
a server, Java Mail is a client API), but when I wrote some load metric and end-to-end functionality
tests for James I used commons Net because of its simplicity.


> -----Original Message-----
> From: Simon Kitching []
> Sent: 10 March 2003 22:00
> To:
> Subject: [Net] : benefits of commons Net SMTP implementation vs
> javax.mail?
> Hi,
> The commons Net project includes the SMTPClient class.
> There is a standard java api javax.mail which defines methods for
> sending mail from java code. There is also a free-as-in-beer
> implementation of this API from Sun which appears to work fine.
> Can anyone suggest any benefits of using the commons Net implemenation? 
> And is there any intention of providing a javax.mail API to this code?
> I certainly will be using the FTP implementation from the Net library in
> the next week or so, and wondered if I should also convert my existing
> SMTP code to using the Net library (it seems tidier to use only one
> library - but on the other hand, the existing stuff works).
> Thanks,
> Simon
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message