I am working on a script that will read an RTF file and add its contents to a new message in Microsoft Outlook. My script works great if I just use a plain TXT file, but then hyperlinks don't display as I want them to where words in the email are hyperlinked.
I am currently using the FileSystemObject GetFile method and then using TextStream.ReadAll but this does not seem to work with a rich text file because my returned results include control code.
My problem it seems is that the FileSystemObject seems to only handle plain text files and I need to work with RichText.
Does anyone know of a way to capture the RTF text?
Thanks in advance.
Mark
I am currently using the FileSystemObject GetFile method and then using TextStream.ReadAll but this does not seem to work with a rich text file because my returned results include control code.
Code:
Set oMsgStream = oFSO.OpenTextFile("message.rtf")
strMessage = oMsgStream.ReadAll
My problem it seems is that the FileSystemObject seems to only handle plain text files and I need to work with RichText.
Does anyone know of a way to capture the RTF text?
Thanks in advance.
Mark