Bug 5312 - newlines in example mailer.jsp
Summary: newlines in example mailer.jsp
Status: CLOSED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Mailer Taglib (show other bugs)
Version: 1.0
Hardware: PC All
: P3 minor (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-07 04:56 UTC by Ignaz Kohlbecker
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ignaz Kohlbecker 2001-12-07 04:56:10 UTC
Example file mailer.jsp, lines 12-21 must look like shown below, without 
newlines before the closing tags. Otherwise the newlines get into the message, 
where the first one is interpreted as the start of the body. Subsequent lines 
would then become part of the mail body.

<mt:setrecipient type="to"><%=request.getParameter("to")%></mt:setrecipient>
<mt:from><%=request.getParameter("from")%></mt:from>
<mt:setrecipient type="cc"><%=request.getParameter("cc")%></mt:setrecipient>
<mt:subject><%=request.getParameter("subject")%></mt:subject>
<mt:message><%=request.getParameter("message")%></mt:message>