Searching the net I finally found the way to directly use sendmail from php, with piping:
$fd = popen("/usr/lib/sendmail -t -f myname@dot.com", 'w');
fputs($fd, "From: $fromname <$from>\r\n");
fputs($fd, "To: $toname <$to>\r\n");
fputs($fd, "Subject: $subject\r\n");
fputs($fd, "\n");
fputs($fd, $message);
pclose($fd);
Tried it and it worked the first time! :p No need for mail(), no need to ask the system admin to recompile php, which is the only way to get mail() to work, it appears... :eek: