-
Emailing from an applet
Hello,
How do I email the text from a component in an applet to a particular
email address using JAVA applets? I've tried simulating SMTP protocol but
I get a java.security.AccessControlException when trying to establish a socket
connection to my company's mail server. Does anyone have any suggestions?
Thanks
Marc
MarcM@cyberrebate.com
-
Re: Emailing from an applet
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
In order to properly do that, your applet needs to be "signed" with
full permissions. Without that signature, no web browser will give
you TCP/IP permissions.
You may want to check out a Certificate Authority such as Thawte
(www.thawte.com) or VeriSign (www.verisign.com) for more info.
(Thawte is considerably cheaper, though I am not aware of any others
out there that may be cheaper.)
> How do I email the text from a component in an applet to a
> particular email address using JAVA applets? I've tried simulating
> SMTP protocol but I get a java.security.AccessControlException when
> trying to establish a socket connection to my company's mail
> server. Does anyone have any suggestions?
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
iQA/AwUBOqedNVYP2Is6WwnSEQJEUQCg7ONzYYpNNq2L1YkFLmuGkFb2frwAoL6R
zzJ3x6TTFppHShlSoVnVkmEi
=nonp
-----END PGP SIGNATURE-----
-
Re: Emailing from an applet
Why not invoke a server-side (on the same server as your applet is, in order
that you avoid the security violations which arise from stepping outside
the sandbox when executing an applet) application passing it the text message
from your applet. The application, not restricted by security protocols
as applets are, can then send the message via the JavaMail API (see www.java.sun.com
for the necessary classes and libraries to utilize the JavaMail API) that
sends the text in an e-mail.
Or you could have your applet put on the same server as your e-mail server,
which doesn't make a whole lot of sense, but should work.
Jack Belden
"Zenethian" <removethismagi@gallatinriver.net> wrote:
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>In order to properly do that, your applet needs to be "signed" with
>full permissions. Without that signature, no web browser will give
>you TCP/IP permissions.
>
>You may want to check out a Certificate Authority such as Thawte
>(www.thawte.com) or VeriSign (www.verisign.com) for more info.
>(Thawte is considerably cheaper, though I am not aware of any others
>out there that may be cheaper.)
>
>> How do I email the text from a component in an applet to a
>> particular email address using JAVA applets? I've tried simulating
>> SMTP protocol but I get a java.security.AccessControlException when
>> trying to establish a socket connection to my company's mail
>> server. Does anyone have any suggestions?
>
>-----BEGIN PGP SIGNATURE-----
>Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
>
>iQA/AwUBOqedNVYP2Is6WwnSEQJEUQCg7ONzYYpNNq2L1YkFLmuGkFb2frwAoL6R
>zzJ3x6TTFppHShlSoVnVkmEi
>=nonp
>-----END PGP SIGNATURE-----
>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks