You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Venkatarangaiah, Srinivas B." <Sr...@GTECH.COM> on 2002/08/26 17:47:09 UTC

problem in using mail tag

Hi,

I am using Mail tag to send message.
 The code I have used in jsp page is

<javamail:mail server="localhost"   to="<%= request.getParameter(\"to\") %>"
   from="<%= request.getParameter(\"from\") %>"
   subject="<%= request.getParameter(\"subject\") %>" >
<javamail:sendmessage> <%= request.getParameter("text")
%></javamail:sendmessage>
<javamail:send/>
</javamail:mail> 

Using this code Iam unable to send message, probably i am not using "to="<%=
request.getParameter(\"to\") " in a correct way.
Is there any other syntax  i can use for  "request.getParameter" method to
get the dynamic values.
Could any one suggest is this is the appropriate syntax or is there any
other way.

Thanks
Srinivas


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: problem in using mail tag

Posted by "P.miller" <p....@brocom.de>.
Hello,

I don't know if you got answers already?

You don't need to put \ (backslash) in you parameters (\"from\")!!
I never do it like this only make <%=request.getParameter("from")%>

Hth
Peter


"Venkatarangaiah, Srinivas B." wrote:

> Hi,
>
> I am using Mail tag to send message.
>  The code I have used in jsp page is
>
> <javamail:mail server="localhost"   to="<%= request.getParameter(\"to\") %>"
>    from="<%= request.getParameter(\"from\") %>"
>    subject="<%= request.getParameter(\"subject\") %>" >
> <javamail:sendmessage> <%= request.getParameter("text")
> %></javamail:sendmessage>
> <javamail:send/>
> </javamail:mail>
>
> Using this code Iam unable to send message, probably i am not using "to="<%=
> request.getParameter(\"to\") " in a correct way.
> Is there any other syntax  i can use for  "request.getParameter" method to
> get the dynamic values.
> Could any one suggest is this is the appropriate syntax or is there any
> other way.
>
> Thanks
> Srinivas
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>