You are here: Re: Strange php mail problem « PHP Programming Language « IT news, forums, messages
Re: Strange php mail problem

Posted by Geoff Muldoon on 11/10/85 11:22

inforequest@spam-killer-remove-techie.com says...

> >Some mail servers will reject mail where an attempt to set a value for the
> >"from" address in the header (as you have done) is in conflict with the
> >message's canonical from address (likely to be apache@yourserver).
> >
> >Try it using the optional fifth parameter in PHP's mail function:
> >$param='-fadmin@acme.co'; // the -f at the front of the address is needed
> >mail($to, $subject, $body, $headers, $param);
> >and see if that fixes it.
>
> Weird, using -f I now get an "Unrouteable address" bounce.

On the target address that used to fail using your initial method, or
both?

One of the upsides to using the -f param method is that bounces are likely
to be returned to the nominated -f address whereas using your initial
method they may well have just gone to the apache account. If mail to
that apache account wasn't been set to /dev/null see if your initial
method was always bouncing mail to that address as well. If so, I suspect
it's a host/DNS problem between your PHP server and that target server.

Geoff M

 

Navigation:

[Reply to this 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

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