in reply to Sending emails in perl/cgi environment
Why avoid the use of modules? MIME::Lite is one of your friends. I find it more elegant than calling the command line for sendmail
update: The documentation has a bunch of examples MIME::Lite.
In Section
Seekers of Perl Wisdom