in reply to How to call external command

Perhaps a search would have been in order before posting?
Anyway, there have been several posts concerning Blat
<update>but the one you would probably be most interested in is blat problems. It shows one way to do it.</update>
Oh, and perhaps check out send mail as well for different way of sending mail.