From:
is just another mail header. You need to concatenate this with your current $headers
and pass it as one argument to mail()
:
$headers = "From: $sender <$senderEmail>\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
// la de da
mail( $recipient, $subject, $mailBody, $headers );