I am trying to get the e-mail functionality in my application using weblogic.properties:
weblogic.resource.MailSession.email= mail.from=abc@co.com, mail.host=XXXX
Error:
javax.mail.NoSuchProviderException: No provider for smtp
I believe j2ee.jar in weblogic.class.path should have worked, it didn't then I tried to put following jars in the class path:
smtp.jar;mailapi.jar;activation.jar;mail.jar;
In code:
Provider[] providers = session.getProviders()
providers.length is 0
It's not working.
Is there any weblogic configuration I am missing?
JNDI: weblogic.log shows
<I> <EJB> Bound mail session to JNDI name "email"
In code:
Session session = (Session) ic.lookup( "email" );
weblogic.resource.MailSession.email= mail.from=abc@co.com, mail.host=XXXX
Error:
javax.mail.NoSuchProviderException: No provider for smtp
I believe j2ee.jar in weblogic.class.path should have worked, it didn't then I tried to put following jars in the class path:
smtp.jar;mailapi.jar;activation.jar;mail.jar;
In code:
Provider[] providers = session.getProviders()
providers.length is 0
It's not working.
Is there any weblogic configuration I am missing?
JNDI: weblogic.log shows
<I> <EJB> Bound mail session to JNDI name "email"
In code:
Session session = (Session) ic.lookup( "email" );