I'm trying to run the Mailer taglib with a very basic configuration:
<mt:mail
server="smtp.mail.yahoo.com"
authenticate="true"
user="my_id"
password="my_pw"
[EMAIL PROTECTED] from="[EMAIL PROTECTED]"
subject="a test message">
<mt:message>this is a test</mt:message>
<mt:send/>
<p>The following errors occured<br/><br/>
<mt:error id="err">
<jsp:getProperty name="err" property="error"/><br/>
</mt:error>
<br/>Please back up a page, fix the error and resubmit.</p>
</mt:send>
</mt:mail>
I keep getting the exception message:
java.lang.SecurityException: Access to default session denied
at javax.mail.Session.getDefaultInstance(Session.java:175)
at org.apache.taglibs.mailer.MailTag.doStartTag(MailTag.java:296)
at org.apache.jsp.mail_0005fsend$jsp._jspService(mail_0005fsend$jsp.java:94)
I have installed the mailer.jar file in my WEB-INF/lib directory, per the
instructions. Are any other JAR files required? The configuration docs don't
reference any other JAR files.
Regards,
- Derek Doerr
[EMAIL PROTECTED]
"Beer is proof that God loves us and wants us to be happy."
- Benjamin Franklin
---------------------------------
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more