You can resolve this by building proper headers in your scripts via mail() and ensure you use the fifth parameter given below.
Code:
mail($to, $message, $subject, "From: $from", "-f$from");
You can check official PHP mail() function documentation by clicking at this link.
Additionally you can check this link as a reference.

Originally Posted by
cwalke32477
How can I make php scripts send mail as
user@account.com instead of
user@servername.com?
I would like to set this universally.
I know each site admin can do it by editing the php code, but I know there is a way to have it as default serverwide, as I have had a server in the past that sent it as such.
Any advice appreciated, thanks