Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Possible to insert a <br> .... Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 30 January 2005 at 11:44pm | IP Logged Quote Guests

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 View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 31 January 2005 at 10:18am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide