Change return-path of script(PHP) generated email - mail from nobody
| Important: The following is a text only archive! For full features; Go to Change return-path of script(PHP) generated email - mail from nobody |
posted by 2Guns
To have PHP scripts run as your username instead of nobody you must get
your host to install php with suexec enabled. This means all your PHP
scripts run under your account username rather than nobody.
The only problem that I have seen with running suexec is that it does
affect alot of php scripts causing alot of 500 internal service errors
pages. It can be very tricky sometimes to make get the php scripts to
function with the suexec.
Instead;
mail("$to", "$subject", "$message", "From: $from\nX-Mailer: PHP/ .
$phpversion()", "-f $from");
Notice the -f... that is the from address, by adding this at the end of the
mail function you can bypass the nobody without using phpsuexec..
;)
posted by Unregistered
My website sends email to people who register. The email contains a link
that allows them to set their password. Your script is PERFECT. I haven't
been able to get anything into an AOL inbox for awhile and there's no
problem
Thanks!!!!
posted by 2Guns Glad to hear that! :)