Emailing from an applet


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Emailing from an applet

  1. #1
    Marc Guest

    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

  2. #2
    Zenethian Guest

    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-----




  3. #3
    Jack Belden Guest

    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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center