I've used Postie a few times without any difficulty - never tried Blat since Postie was working OK...
My login scripts initialise $Message and $Subject as global variables, then set them and call this sendmail script as necessary.
code:
;Send mail script using Postie command line utility
$HOST = "-host:[SMTP server IP address] "
$PORT = "-port:25 "
$SENDFROM = "-from:some.user@@someplace.com "
$SENDTO = "-to:some.otheruser@@elsewhere.COM "
$SUBJECT = "-s:TEST "
$MESSAGE = "-msg:HELLO "
$COMMAND = "POSTIE.EXE "
$POSTIELINE = $COMMAND + $HOST + $PORT + $SENDFROM + $SENDTO + $SUBJECT + $MESSAGE
SHELL "cmd /c $POSTIELINE"
exit
Hope this helps. I have to say after some of my recent flirtations with COM, I'd prefer to try and develop a method of doing this without shelling out to other products - maybe next time I get a few minutes spare...fat chance!
Word of warning, though - be careful with your inverted commas!
[ 05 April 2002, 18:48: Message edited by: Breaker ]
_________________________
================================================
Breaker