Well, Interesting findings - take a look at the following code -
PHP Code:
function send_mail($myname, $myemail, $contactname, $contactemail, $subject, $message)
{
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Mailer: PHP/" . phpversion()."\n";
$headers .= "Reply-To:<".$myemail.">\n";
$headers .= "From:".$myname."<".$myemail.">\n";
return(mail("\"".$contactname."\" <".$contactemail.">", $subject, $message, $headers,"-finfo@harmonmediagroup.com"));
}
At first I just passed in "-finfo@harmonmediagroup.com" to the php mail function. Still didn't get anything different in the "Return-Path:" header - server generated. This proves that you can't override the EXIM configuration by passing a parameter.
Only after unchecking the "Set the Sender: Header when the mail sender changes the sender" option in WHM - MAIN>>Service Configuration>>Exim Configuration Editor under Mail, was I able to sucessfully pass on the additional parameter "-finfo@harmonmediagroup.com" and have it come up as such in the header's Return Path, which ultimately feeds into Oulook's "on behalf of" verbiage.
Not setting it in the mail function resorted to the default server username, but still did not generate the outlook "on behalf of" message in outlook.
Bottom line, I think I'll try it without the check box for a while - don't think it hurts anything.