First of all, the Sendmail RFC outlining the protocol calls for both a carriage return and line feed in the headers, so in the last argument (with the from, reply to, etc.) make sure you replace all of those \n's with \r\n's.. otherwise check your mail log's to see if it even made it there.
Chris