Path to Open SendMail

We are trying to work out the paths for calling Postfix from CGI's in the cgi-bins owned by different virtual servers.

our scripts on the old server like this (see below) are not working. Calling send mail from the cmd line seems to work even though the designated MTA is PostFix but this does not, when run from a virtualserver cgi-bin by a virtual server user:

put "/usr/sbin/sendmail -t" into mprocess
open process mprocess for write
write "From:" && (urlDecode (tDataIn["from"]))& cr to process mprocess
write "To:" && tRecipients & cr to process mprocess
write "Subject:" && (urlDecode (tDataIn["subject"])) & cr & cr to process mprocess
write (urlDecode (tDataIn["body"])) & cr to process mprocess
close process mprocess

Status: 
Closed (fixed)