tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hunter Hillegas <hhille...@jacobstern.com>
Subject RE: JavaMail Question
Date Tue, 22 Aug 2000 21:36:12 GMT
Thanks. That fixed it. Duh.


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

 -----Original Message-----
From: 	Phuc Truong [mailto:ptruong@experience.com] 
Sent:	Tuesday, August 22, 2000 2:37 PM
To:	tomcat-user@jakarta.apache.org
Subject:	RE: JavaMail Question

You probably want "\n" instead of "/n".

-Phuc

-----Original Message-----
From: Hunter Hillegas [mailto:hhillegas@jacobstern.com]
Sent: Tuesday, August 22, 2000 5:27 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: OT: JavaMail Question


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