I created a function that has as parameters an string with a message to be sent and the mail adress.This string contains a message with chr(10), so that the email can have a ‘better looking’ text.
The function that sends the email creates a document and a field of this doc receives the string with the text like ‘doc.body = sMsgText’, but when i send it, the email comes without the chr(10). It used to work on notes 5 but it doesn’t work on version 6.
When i don’t use the function to send the email, i just create the document and use something like this:
doc.body = "my message is chr(10) _
& "plus this"
it works, the chr(10) is there when the email comes, so why it disappears when i pass it as a parameter to a function?
Does anyone know why is this happenning or if i can do that on a different way??
Any help will be aprecciated.
Regards.
Fabiano
Subject: try Chr(13) — Chr(10) disappears when send email
In some contexts (dialogboxes, logs, docs, …) it is better to use a linefeed – other times a carriage return is better. If one does not work, try the other. Search in the designer help. Also see @Newline and @Char.
Subject: RE: try Chr(13) — Chr(10) disappears when send email
The form associated to the doc to be sent has a text field wich receives the text value with the message, passed as a parameter to the function that sends the email.This text field loses the chr(10) and chr(13).
Its a form used by other functions of the base then i can’t change the field type, so i must find a way to deal with it…
Is there any property of the field that can be set or anything alse i can do?? Any ideas?
Thanx
Fabiano
Subject: RE: try Chr(13) — Chr(10) disappears when send email
Is it a multi-value field? Are CR and LF delimiters?
Subject: Chr(10) disappears when send email
Hi Fabiano,
Why not create the Body item as a NotesRichTextItem? You can then use the AppendText and AddNewLine methods to format your text as you like.
Emily.