|
Posted by s on 04/01/06 04:59
On 31 Mar 2006 07:03:11 -0800, jaschreiber@gmail.com wrote:
>hi. i have a couple scripts on my site that send emails, and they've
>all been working for months with no problems. all of a sudden the from
>headers aren't working, so the messages all come from the server
>(texasnee@web012.ahp01.lax.affinity.com) instead of the address
>specified. i haven't changed anything in the scripts and i didn't
>(knowingly) make any changes to the server.... does anyone have any
>idea what might have happened?
A critical Sendmail vulnerability was announced last week. My guess is
that your sysadmin upgraded Sendmail to patch the vulnerability, and
pushed out some configuration changes while he was at it.
Try using the 5th parameter to the mail() function to pass your sender
address more forcefully:
mail('test@example.com', 'Subj', 'Msg', 'From: me@example.com',
'-ftest@example.com'');
The 5th parameter is simply '-f' followed by the sender address (note
that there's not a space in there anywhere).
hth
--
<s@guerril.la.ape> (to email, remove .ape)
--
Navigation:
[Reply to this message]
|