New line / carriage return in emails

Hi,

I have an agent that creats email to be sent and to format the email I am using Chr$(10) for an newline this works fine as for formating the text is concerned.

I have problem when there is a URL this doesnot show as a link. when I went into the document properties of the email and looked at the body all the places that I have this $Chr(10) there are funny characters and I am figuring that is what is causing teh problem.

If I am correct in this assumption, does anyone have any ideas how I can get the email to be formatted correctly and also get the links going fine.

Thanks for any help

Sameer

Subject: new line / carriage return in emails

You need a richtext field in order for the url to show as a link.

Use something like this to create an email in Lotusscript:

Set newDoc = New NotesDocument( db )

newDoc.form = “Memo”

Set rtitem = New NotesRichTextItem( newDoc, “Body” )

Call rtitem.AppendText(“This is the text of the message.”)

Call rtitem.AddNewLine( 2 )

Call rtitem.AppendText(“This is more text.”)

Call rtitem.AddNewLine( 2 )

call rtitem.AppendText(“http://www.ibm.com”)

'Set your subject, send to, etc.

call newDoc.send(False)

Subject: new line / carriage return in emails

You can try using Chr(10) & Chr(13) together