Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

illlegal address exception.

 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,,

I am facing a problem in sending a javamail..

while creating a session it says "illegal address".So the session is not getting created because of this.

The code which i am using is.......




the code is not executing beyond the line of..
before creating session.

and is throughing the exception as "illegal address".

Can anybody please guide me how to correct this.


Thanks
Shanky
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What address are you trying that with?
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the address which i am trying with that is

SMTP_AUTH_USER = "shanky@mydomain.com";

by puttin it into the properties file
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, not that address the from address.
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:Sorry, not that address the from address.


From address is the address which the person filling the feedback form will enter..
Is the illegal address error is coming from there...
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps. The simplest way to find out is to add logging of all the addresses you intend to use (though from memory this should be included in the stack trace... might be wrong about that though).
 
Shanky Sohar
Ranch Hand
Posts: 1051
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please ignore
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic