• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to send mail.

 
Srikanth Nutigattu
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 20983
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay. So what exceptions are being thrown? Do you have a stack trace?
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 20983
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic