Please go through this following snippet also note that in the to i've used <%=mailid%> But instead of taking the value of the variable simply <%=mailid%> is added as a string please guide me how i should put a variable as tag attribute...
<%@ page language="java" import="java.sql.*,java.util.Date" %> <%@ page import="javax.servlet.http.HttpSession.*,java.util.*"%> <%@ page session="true" buffer="8kb" autoFlush="true" errorPage="error.jsp" isErrorPage="false" isThreadSafe="true"%> <%@ taglib uri="http://jakarta.apache.org/taglibs/mailer" prefix="mt" %> <mt:mail server="hwr06" to="<%=mailid%>" from="[EMAIL PROTECTED]" subject="thank You" replyTo="[EMAIL PROTECTED]"> <mt:message> Mr.<%=nam%>, Thank you for visiting </mt:message> <mt:send/> </mt:mail> ---------------------------------------------------- V.T.R.Ravi Kumar Engineer,CCX,BHEL, Haridwar Phone : Office-91-0133-485260 Res -91-0133-426121 ----------------------------------------------------- =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
