Hi,

Please can someone help me. I am trying to pass a string to postie so I can email the string contents to myself. The string contains multiple lines of data.
When the email is received the message body only contains the first word of the first line of the string.

When I view the contents of the string onscreen, it displays correctly and looks like this:

Not Installed to Machine1
Not Installed to Machine2
Not Installed to Machine3

But the contents of the email looks like this:

Not

The code I have been working with is this:

code:
 ; **************************************************************
; *** Read contents of File to String ***

$string=""
open(1,"notinst.ini")
$line=readline(1)
while @ERROR=0
$string=$string+$line + Chr(13) + Chr(10)
$line=readline(1)
loop
$null=close(1)

; **************************************************************
; *** Email String to Admin ***

; E-Mail Addresses of Administrators
$email1 = "greg@@test.com"
$email2 = "parkerm@@test.com"
$email3 = "someone@@whocare.nl"

Shell "postie.exe -host:192.168.4.129 -to:$email1 -from:@userid@@@wksta -s:SU_Not_Installed_to... -msg:$string"

Thanks in advance.

Kind Regards, Greg.