I am trying to send e-mail using JSTL. I have "taglibs-mailer.jar" (Version 1.1) in webapps/myApp/WEB-INF/lib. I also have "activation.jar" and "mail.jar" in C:\j2sdk1.4.2_03\lib and they are in classpath.
In my
JSP I have following lines of code:
taglib uri="http://jakarta.apache.org/taglibs/mailer-1.1" prefix="mt"
c:if test="${pageContext.request.method=='POST'}"
c:set var= "email" value= " '${param.e_mail}' "
mt:mail server="myServer" to="${email}" from="eMailAddress" subject="Test mail"
mt:message>This is a
test </mt:message
mt:send/
/mt:mail
The JSP itself doesn't show any error but the mail doesn't get delivered. I get an "Undeliverable mail" message from the server.
It says:
The following recipient(s) could not be reached:
${email}@myServer
How can I set a variable to the e-mail address and use that variable for sending the e-mail?
Thanks in advance.
Arun