Author |
|
Guests Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 30 January 2005 at 11:44pm | IP Logged
|
|
|
Not sure if this is the create board for my question...but..
When I display a message body on the page instead of in a text area, it loses formatting. Is there any method that inserts a break when there is a return?
Thanks
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 31 January 2005 at 10:18am | IP Logged
|
|
|
You can use standard Replace function. Here is an ASP example:
Code:
Dim objPOP3
Set objPOP3 = Server.CreateObject("MailBee.POP3")
' Set license key, connect to the server, etc. here
' ...
' Retrieve the message
Set Msg = objPOP3.RetrieveSingleMessage(1)
' Find and replace any occurrences of CRLF
MyText = Replace(Msg.BodyText, vbCrLf, "<br>")
' Display corrected message body
Response.Write MyText
|
|
|
Regards,
Alex
|
Back to Top |
|
|