Interesting thread.

It seems that most people are advocates of the JavaMail API. I implemented a
class that talks directly to SMTP back before the JavaMail API, and have
used that for all of my integration with email. The class took me all of
about an hour to write, as I'm sure it would those of you who have played
with any of the inet protocols before.  The first release of the JavaMail
spec (last time I looked at it) was fairly complex, for the problem it
solved. So, my question has always been what benefit would I get by
switching to the JavaMail spec?

Does it provide interfaces to more mail services that I might need? I
haven't implemented too much in the way of the SMTP protocol, but then I
haven't had a need for more than I've implemented so far. I think the only
piece I would like to have in the future is to add more MIME type handling.

Does it have an easier interface that allows for quicker development cycles,
and provides a more intuitive interface?

What are the advantages that make so many of you say the JavaMail api is the
way to go? I guess if I didn't have the wrapper already written, then I
would consider JavaMail again, but if it is still as convoluted as it was in
the past, I would probably just write the wrapper again!

Just my $.02 worth,
Brian

-----Original Message-----
From: Robert A. Crawford [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 15, 1999 1:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Sending emails


On Tue, Jun 15, 1999 at 08:58:44PM +0200, Andras Balogh wrote:
> sun.net.smtp.SmtpClient sendmail = new
sun.net.smtp.SmtpClient("yourmailserver.somewhere.com");

<RANT MODE="preach">
        Does this work on the Microsoft JVM? Does it work with Kaffe?
IBM's JVM? Will this work in future versions of Java?

        Don't use sun.* packages; they're not part of the API and
they're not stable.
</RANT>

        The JavaMail API is as easy, it's standard, and it can work
with other mail systems, too.

--
Robert Crawford                 [EMAIL PROTECTED]
http://www.iac.net/~crawford

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to