Not portable, works only on unix (and only where sendmail is in /usr/sbin)
My personal choice is to use something like Mail::Sendmail or MIME::Lite which provides a nice level of abstraction and reduces the chance of errors. It also means less typing which is definatly a good thing.