vivasuzi
Programmer
- Jun 14, 2002
- 183
Hello!
I am trying to get a subject to be created dynamically when the email is sent.
Here is code
Basically, where it says YourName I want to dynamically put the requiredname as retrieved from the form.
I've tried putting subject="Ordered By: <%out.println(requiredname );%>"
And I've tried I've tried putting subject="Ordered By: <%=requiredname%>"
Both times the subject will come through as code exactly as it looks above. The body text all comes through fine. I'm more of an ASP person, so I'm not sure what to do. Please help!
Thanks!
*Suzanne*
I am trying to get a subject to be created dynamically when the email is sent.
Here is code
Code:
<%
String requireddate = request.getParameter("requireddate");
String requiredname = request.getParameter("requiredname");
.
.
.
More strings here
%>
Later on....
<jrun:sendmail host="domino2" sender="myemail@emailme.com" recipient="myemail@emailme.com" subject="Ordered By: [COLOR=red]YourName[/color]">
Request Date: <%out.println(requireddate);%>
Contact's Name: <%out.println(requiredname );%>
...
other fields printed out here
...
</jrun:sendmail>
Basically, where it says YourName I want to dynamically put the requiredname as retrieved from the form.
I've tried putting subject="Ordered By: <%out.println(requiredname );%>"
And I've tried I've tried putting subject="Ordered By: <%=requiredname%>"
Both times the subject will come through as code exactly as it looks above. The body text all comes through fine. I'm more of an ASP person, so I'm not sure what to do. Please help!
Thanks!
*Suzanne*