First thing I would recommend is not calling sendmail directly. It may work, but it's not portable. If you use a good module like
Mail::Sendmail,
you can probably avoid the problem you're running into, and also any portability-related issues. It's worth a try.
jdporter
...porque es dificil estar guapo y blanco.