Using Net::SMTP is a little more portable than piping to /usr/sbin/sendmail but not half as portable as using a general mail sending module such as Mail::Sendmail or MIME::Lite (all of them have an ability to send mail via SMTP).
Besides, I cannot find Net::SMTP among perl core modules neither in 5.6.1 not earlier versions. There's a recent node on the topic.