Glenn: Might seem like blat is my best option.

you say you can specify all parameters at runtime?

I have quite a number of arrays I need to be handled, like this (sorry for my probabbly bad quick-translation into english) \:\)

 Code:
$MsgSubject = "New user " + $aOut3[2] + ", " + $aOut3[1] + " has to bee created in our XXX-system" 
$MailRcpt = "someaddress@mail.no"
$MsgTekst1 = "This is an automated mail ." + @crlf + @crlf + "User " + $aOut3[2] + ", " + $aOut3[1] + " has been created in our system in department " + $aOut3[6] + @crlf + @crlf + "The user har been created with this information: " + @crlf + @crlf
$MsgTekst2 = left("Sirname   ",12) + $aOut3[2] + @crlf + left("Givenname:   ",12) + $aOut3[1] + @crlf + left("Department    ",12) + $aOut3[6] + ", " + $aOut3[5] + @crlf

...before calling the sendmail-function.

I haven't still explored blat, but can this be handled?

//Regards JE
_________________________
I was placed on earth to do a job. Right now I have so much to do, I will never die..