473,388 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Sending email through an applet GUI

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
Jul 17 '05 #1
3 6736
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

Jul 17 '05 #2
Thank you both for your constructive feedback,

I've found both of your responses helpful. I am going to teach myself
and use servlets to email the text and the attachment using JavaMail.
I'll use my applet to pass on necessary information to the servlet.

Thank you,
Jared Hagel
Jul 17 '05 #3
On Sun, 20 Jul 2003 23:43:06 -0700, Jared wrote:
Thank you both for your constructive feedback,

I've found both of your responses helpful. I am going to teach myself
and use servlets to email the text and the attachment using JavaMail.
I'll use my applet to pass on necessary information to the servlet.


As an aside, of course a servlet is only an option of the server is
running Java. You can just as well use whatever other technology the
server understands, for instance an ISAPI DLL, CGI, a Perl script, PHP,
Python, etc.

--
Keep American Families united! Support H.R. 539 and H.R. 832
For more information, see http://www.kkeane.com/lobbyspousal-faq.shtml

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: James | last post by:
I am trying to set up a PHP file that receives data from an applet via Java's URL object (this sends a URL so I can place PHP attributes in this), gets a set of numbers from a database table and...
1
by: nathanlaan | last post by:
This is the stupidest thing I have ever seen. Java 1.2, 1.3, and 1.4.1, and 1.4.2 all define the Applet.getDocumentBase() method differently! How am I supposed to get the directory of the document...
1
by: Charlie Kim | last post by:
Here is gnome applet source of mine. -------------------------------------------------- #!/usr/bin/env python import pydic import gtk import gnome.applet
2
by: Bary W Pollack | last post by:
Is it possible to have a Java Applet that is running on a web page to send/return a string (or an int) so that some JavaScript that is running on the same webpage can retrieve the information? If...
1
by: Tormod Omholt-Jensen | last post by:
Ï need to dynamically insert an applet into a document. In IE 6.0 my code works fine, but there seems to be problems in Opera 7. The page looks like there is allocated space for an applet. ...
0
by: ankur | last post by:
WHEN I RUN THIS WEB APPLICATION ON Tomcat5.5.9 SERVER MY HttpChatApplet sccessfully Loaded from ChatDispatch but running on some another PC HttpChatApplet not loaded my Coad ...
7
by: D. Patrick | last post by:
I need to duplicate the functionality of a java applet, and how it connects to a remote server. But, I don't have the protocol information or the java source code which was written years ago. ...
4
by: tudyfruity18 | last post by:
I'm suppose to write an applet that contains two buttons Investment calculator and Loan Calculator. When the Investment Calculator button is clicked, a frame appears in a new window for calculating...
1
by: sheephead86 | last post by:
Hi, I'm pretty new to java, and I have a small problem involving drawing a rectangle on a java applet.Firstly this is not a plea for someone to help me with this peice of work, I just need pointing...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.