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.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.