Further to Charlies comment about qmail's "look alike" for sendmail, one needs to be aware of a very common perl syntax used with sendmail that does not work with qmail.. This syntax is as follows:
open (MAIL,"|/usr/lib/sendmail -t")
This line of code opens a connection to the sendmail program and uses the To email address, specified in the email header, to implicitly tell sendmail where to send the email. Qmail's sendmail script does not recognize the -t option. Instead, you must explicitly tell qmail where to send the email message:
open(MAIL,"|/var/qmail/bin/sendmail $recipient_email_address");
Regards,
Greg J. Zartman