The plan was to wrap the sendmail in place, not write a new MTA. I suppose I should have been clearer. I just wasn't sure if sendmail needed some special interface. From the comments though it looks like you would just open the sendmail interface for writing and write the message to it.
Thanks for all the great ideas.