Reply to Re: mail() From: headers not working

Your name:

Reply:


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)
--

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация