Forget sendmail, just use Net::SMTP
This will work on most platforms. sendmail is error prone and very platform specific with implementations and security options varying per OS installation. Bonus, you get real debugging with Net::SMTP.
If you HATE external perl modules for some irrational reason you can use 'blat'. Search on google for it, its a nice sendmail replacement for windows
But seriously, Net::SMTP is awesome!