in reply to Sendmail problems

Without seeing the code, I would have no idea why it is doing that. However I will recommend using Mail::Send rather than interacting with Sendmail directly.