i got a weird problem.
im kind of an n00b with this so dont blame if its really stupid [Smile]

im trying to make an automated mail script.. the mail part works. but i want it to read the body text from a textfile.
i got it to read and write, but i have a weird problem with that.
with the following code it only write's the last line.
and if i put the bold line anywhere else it just does nothing

code:
Open(1, "E:\kix\text.txt",2)  
While @ERROR = 0
[B]$= OLEPutProperty($objItem, "Body", "s", "$x"[/B]
$x = ReadLine(1)
Loop
Close (1)

i treid it a bit different and now it only writes the first line

code:
Open(1, "E:\kix\text.txt",2)   
While @ERROR = 0
$x = ReadLine(1)
MessageBox("$x",dom,0,)
Loop
$= OLEPutProperty($objItem, "Body", "s", "$x") Close (1)

i tried multiple sites and books but i cant find a damn thing [Frown]