I've never used that tag, but I just looked at the documentation.  What you
are doing looks OK to me as long as you have an SMTP server on the same
machine from which you are running your JSP.  If the SMTP server is not on
the same machine you must supply the "server" attribute to the mt:mail tag.

When you say it doesn't work, what happens?  Do you get an error message
somewhere?  Check your JSP containers logs.

> -----Original Message-----
> From: Darcee Thomason [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 28, 2003 2:06 PM
> To: [EMAIL PROTECTED]
> Subject: mail help
>
>
>
> I am new to this JSP taglib thing.  Could someone please tell me why this
> does not work?  Thank you.
>
> -D
>
> <%@ taglib uri="http://jakarta.apache.org/taglibs/mailer-1.1";
> prefix="mt" %>
>
> <html>
> <head>
> </head>
> <body>
> <%String body = request.getParameter("body");
> String to = request.getParameter("to");
> String from = request.getParameter("from");
> String subject = request.getParameter("subject");
> %>
>
> <mt:mail  to="<%= to %>"
> from="<%= from %>"  subject="<%= subject %>" >
>      <mt:message>"<%= body %>" </mt:message>
>      <mt:send/>
> </mt:mail>
>
> </body>
> </html>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to