aspose file tools*
The moose likes JNLP and Web Start and the fly likes Not able to send mail. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Not able to send mail." Watch "Not able to send mail." New topic
Author

Not able to send mail.

Srikanth Nutigattu
Ranch Hand

Joined: Oct 30, 2007
Posts: 114
Hi,
I have a Swing based application which is running fine as a standalone, but when i deploy through apache and download through webstart, I am able to use the application but not able to send the mail. (thru SMTP).

In normal execution mail is being sent properly. Are there any restrictions on application executed using webstart? I have also given "All permissions" in JNLP file.

any thing else need to be done?

Thanks.
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1278

Hi Srikanth,

according to the documentation from Sun you have to sign the JAR files of WebStart applications if they need "extra permissions" which is in your case a network connection (SMTP). You should find the necessary information on this page or referenced pages ;-)

Marco
Srikanth Nutigattu
Ranch Hand

Joined: Oct 30, 2007
Posts: 114
Hi,

I have already done a "self-signing" and even could use socket connections after specifying all-permissions in JNLP.

thanks.
Srikanth.N
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18127
    
    8

Okay. So what exceptions are being thrown? Do you have a stack trace?
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1278

Exactly what I wanted to ask just this moment :-)

Or do you perhaps have some mail configuration parameters in place which are different for the Java WebStart version of your application?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18127
    
    8

There could be all kinds of reasons. So you need to find out what's happening. Exceptions and stack traces are the first things to look for.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to send mail.
 
Similar Threads
storing mail sent item
JNI + Java Webstart
Problem with java mail
Problem with Java Mail
Jprobe and Java Webstart applications