Digging into this..

You will need to have a text file to send..

If you do the following, it should work fine:
code:
break on cls
$EmailAdd="user@@domain.com"
$mailserver="smtp.domain.com"
$Blatexe="C:\Batch\blat.exe"

shell '%COMSPEC% /c $Blatexe "byname.txt" -s "What are we testing" -t $EmailAdd -f $EmailAdd -server $mailserver'

get $k

Even though we see:
quote:

Failed to open registry key for Blat profile , using default.
Failed to open registry key for Blat
Sending byname.txt to user@domain.com
Subject:What are we testing
Login name is user@domain.com

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's