SMTP Error

Dear All, i am using mhsoftware event calendar while sending emails i am facing following error.

with smtp authentication true....

DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]

And

javax.mail.NoSuchProviderException: invalid provider

at javax.mail.Session.getStore(Session.java:398)

at javax.mail.Session.getStore(Session.java:364)

at javax.mail.Session.getStore(Session.java:343)

at com.MHSoftware.net.mail.MHMail.sendSMTP(MHMail.java:272)

at com.mhsoftware.cdaily.servlet.ReminderLogin.sendConfirmMessage(ReminderLogin.java:335)

at com.mhsoftware.cdaily.servlet.ReminderLogin.doPost(ReminderLogin.java:244)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)

at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)

at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)

at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)

at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)

at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)

at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)

at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.2)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)

at java.lang.Thread.run(Thread.java:534)

Your early action in this regard will be highly appreciated.

I am using the latest version of Java Mail API 1.4 and Java Activation Framework. 1.1

[2307 byte] By [WaqasAhmeda] at [2007-11-27 10:10:58]
# 1

If you're trying to send mail you shouldn't be calling getStore, you should

be calling getTransport. Did you find all the demo programs included with

JavaMail, including tons of working code you can copy?

bshannona at 2007-7-28 15:09:59 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...