Well, at some point you have to use SMTP to send email if you want to feed
it into the Internet - there is no way around that (if the email is only
in-house, you don't have to use SMTP, of course).
The only question is whether you do it on the client or on the server.
I have to make some guesses about your actual requirements, but it seems
to me that a good approach would be to use the Hotmail/Webmail approach.
They simply provide a form that is submitted as a plain HTTP post, no
applet involved. On the server, you can have a servlet that receives this
form and converts it to a regular email, sending it off through Javamail
(via SMTP if you have access to SMTP on the server) or the JMS if you need
to interface with some other mechanism. If you do that, you won't need the
JMS on each client.
I see that in another post you mentioned the need to generate a
attachment. You can still pursue the same strategy. In this case, your
applet generates the attachment, and then the applet rather than a Web
page sends the HTTP post (there is nothing that says that the user has to
actually click submit on an HTTP form, or that there even has to be a form
in the first place. The applet can send an HTTP post just as easily).
On Thu, 17 Jul 2003 08:19:00 -0700, Jared wrote:
Hello people,
I've had major difficulties finding the right Java technology that can
be used to make an e-mail applet program. I'm trying to build an applet
that would be similar, but much simpler, than Hotmail or Webmail. I've
been told by our system administrator that I can't access our SMTP and
POP3 servers directly. If I could use SMTP or POP3, this problem would
be trivial, I think. But instead, I'm forced to rely on the HTTP
protocol.
I learned that using Java's JMS API would give me the functionality I
need, but the trouble with this solution is that every possible
recipient would need the J2EE SDK installed on their system. I read
this on the JMS tutorial on SUN's website. This stipulation would make
the applet totally unusable.
I can't to find a solution to this problem on the internet! The
solution must be so obvious that no one's bothered to mention it
anywhere.
Could someone offer me some advice and/or corrections to my assumptions
above?
Thank you very much!
Jared Hagel
--
Keep American Families united! Support H.R. 539 and H.R. 832
For more information, see
http://www.kkeane.com/lobbyspousal-faq.shtml