You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Simon Kitching <si...@ecnetwork.co.nz> on 2003/03/10 23:00:23 UTC

[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


RE: [Net] : benefits of commons Net SMTP implementation vs javax.mail?

Posted by Danny Angus <da...@apache.org>.
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.

d.



> -----Original Message-----
> From: Simon Kitching [mailto:simon@ecnetwork.co.nz]
> Sent: 10 March 2003 22:00
> To: commons-user@jakarta.apache.org
> 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: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>