I would use the Net::STMP module. This will allow your script to be run the same on an IIS server as it would on an Apache server. It is more cross platform friendly than hard coding programs into you scripts.
--
BigJoeLearn patience, you must.
Young PerlMonk, craves Not these things.
Use the source Luke.