theniteowl
Programmer
Hi All,
I am trying to send plain text emails using CDO in a .vbs file. The email data is read from a text file generated in another application.
Either CDO or Outlook is stripping the carriage returns so the text comes out all on one line. Outlook shows a message "Extra line breaks in this message were removed".
When my script reads the text file to build the message it reads line by line. Line breaks are already inserted by the program that generated the text file. If I try to add a vbCrLf at the end of each line I end up with two carriage returns and if I do not add it I end up with no carriage returns.
Ideas?
I know I can format as HTML and handle it that way but I need the app to be able to be called from various other applications with limited capabilities and want to support HTML or TEXT settings.
I have seen a lot of people post about carriage return problems but all of their solutions were to use HTML.
At my age I still learn something new every day, but I forget two others.
I am trying to send plain text emails using CDO in a .vbs file. The email data is read from a text file generated in another application.
Either CDO or Outlook is stripping the carriage returns so the text comes out all on one line. Outlook shows a message "Extra line breaks in this message were removed".
When my script reads the text file to build the message it reads line by line. Line breaks are already inserted by the program that generated the text file. If I try to add a vbCrLf at the end of each line I end up with two carriage returns and if I do not add it I end up with no carriage returns.
Ideas?
I know I can format as HTML and handle it that way but I need the app to be able to be called from various other applications with limited capabilities and want to support HTML or TEXT settings.
I have seen a lot of people post about carriage return problems but all of their solutions were to use HTML.
At my age I still learn something new every day, but I forget two others.