473,765 Members | 1,994 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6760
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
5741
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 sends them back to the applet. The part I am unsure of is how to send data back to applet. The applet will be able to read information back in but I can't find any information on how to send information out from a PHP file. Obviously there is...
1
9523
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 in which the applet is embedded (like Java 1.3) using Java 1.4.2??? http://java.sun.com/products/jdk/1.2/docs/api/java/applet/Applet.html#getDocumentBase() http://java.sun.com/j2se/1.3/docs/api/java/applet/Applet.html#getDocumentBase()
1
2943
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
4891
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 so, HOW? Thanks! -Bary-
1
4066
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. Printing the size of the document.applets array return as expected 0 before the insertion, and 1 after, in both Opera 7 and IE. However, the applet does not init properly (no painting). Anyone? Regards Tormod Omholt-Jensen
0
5663
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 ChatDispatch.java
7
2686
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. So, I used a packet sniffer and saw the protocol (TCP), the port, IP address, etc. All is good. I tried 2 different versions of .NET code to duplicate the requests to the remote server. Again, I used the packet sniffer and my packets seemed...
4
7822
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 future investment values. When you click Loan Calculator button, a frame appears in a separate new window for computong loan payments. Here's my coding: // Lab3.java: import java.awt.*; import java.awt.event.*; import javax.swing.*; ...
1
2387
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 in the right direction. Ok the problem. I am creating a program that ask the user to input a height value, the program will then do a calculation and create a golden ratio width. The type of both the height and the width are double. This is...
0
9566
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9393
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7371
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6646
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5272
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3921
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3530
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2800
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.