tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hunter Hillegas <hhille...@jacobstern.com>
Subject OT: JavaMail Question
Date Tue, 22 Aug 2000 21:27:18 GMT
This is off-topic. Please respond off-list if you can help...

I am using JavaMail to send email messages. I have the following code:

    StringBuffer sb = new StringBuffer();
    sb.append("Username: ");
    sb.append(username);
    sb.append("/n");
    sb.append("Customer: ");
    sb.append(rs.getString("customer_name"));
    sb.append("/n");
    sb.append("/n");
    sb.append(request.getParameter("message"));

Which in turn pass to JavaMail via this:

msg.setText(message);

For some reason, the newlines come in as text instead of formatting. Any
idea how I can fix this so the /n generates a newline?


Hunter Hillegas, MCP
Web Engineer / System Administrator - Jacob Stern & Sons, Inc.
hhillegas@jacobstern.com
805-565-1411 PH * 805-565-8684 FAX


Mime
View raw message