in reply to Sending mail through sendmail

As far as I know you can't set the name directly through the script (I could be wrong). However, you can set it through sendmail's virtual user table.

You can find more information on the virtual user table here (sendmail.org)