in reply to Sending email using qmail
man qmail-inject ought to spell out the details. I switch between using mailx (or nail when I need to control the From: line in the headers), or Mail::Mailer, which as I recall takes a hash ref to the header parameters, and permits you to open, print to then close the $mail handle, as if it were any other filehandle. On close its handed off to the mta.
-- Hugh
|
|---|