Thomas,
saw you closed this ticket. A fix could be:
$from = 'From: ENTER SENDER ADDRESS' . "\r\n";
if (ini_get('safe_mode'))
$sent = mail($to, $subject, $body, "$from");
else
$sent = mail($to, $subject, $body, "$from", "-f ENTER SENDER ADDRESS");
regards