You are here: Re: mail not working « PHP Programming Language « IT news, forums, messages
Re: mail not working

Posted by Alexander on 10/18/06 06:15

Geoff Muldoon wrote:
>
> Try:
>
> $to = "me@testaddress.com";
> $subject = "this is a test";
> $body = "test 123";
> $headers = "From: me@sendaddress.com";
> $params = "-f me@sendaddress.com";
>
> mail($to, $subject, $body, $headers, $params);
>
> Notice the fifth parameter with the -f setting. This is used in many
> sendmail installations to set a "canonical" from address, setting it
> purely in the headers is often ignored as it can be used as a common
> spam/spoof exploit.
>
> Geoff
>

Thank you Geoff!

As I already wrote in my reply to Daz I solved it meanwhile by doing
exactly this - more or less :). In order not having to edit any script
with a mail() call I overrode the host's wide value and it seems to be
working now.

Thanks again Geoff,
Alexander

 

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

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