I need to send emails through mail().
Do I need a root server to change the Return-Path value?
Currently it’s www-data@mydomainname.com but I’d like to have it the same address like From and Reply-to.
I set the Return-Path like below but it stays www-data@mydomainname.com:
$headers.="Return-Path: $from\r\n";
Thank you.
You can also set the fifth parameter of mail function to adjust the return path