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