On a Win32 platform;
In my php.ini, I have set 'sendmail_from=me@domain.com;'
In my headers I have a proper 'Return-Path:' and 'From:' with the "\r\n" and other required header information that gets passed correctly.
I'm using mail($to,$subject,$message,$headers);
My problem is that the 'Return-Path:' in the client who recieves the email is set to what the php.ini is set to and not what the header is set to.
If I comment out the line in the php.ini, I get an error that says that I don't have a Return-Path: or a From: available in my header.
My Return path is 'Return-Path: me@domain.com\r\n'
My From is 'From: My Name<me@domain.com>\r\n'
The "From" is fine but what happens is that email address that is the 'To: ' has an autoresponder and automatically send a message to 'sendmail_from' and not 'Return-Path:'
In my php.ini, I have set 'sendmail_from=me@domain.com;'
In my headers I have a proper 'Return-Path:' and 'From:' with the "\r\n" and other required header information that gets passed correctly.
I'm using mail($to,$subject,$message,$headers);
My problem is that the 'Return-Path:' in the client who recieves the email is set to what the php.ini is set to and not what the header is set to.
If I comment out the line in the php.ini, I get an error that says that I don't have a Return-Path: or a From: available in my header.
My Return path is 'Return-Path: me@domain.com\r\n'
My From is 'From: My Name<me@domain.com>\r\n'
The "From" is fine but what happens is that email address that is the 'To: ' has an autoresponder and automatically send a message to 'sendmail_from' and not 'Return-Path:'