"Marco Alting" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> When I try to use a php script, to send an email, the From header is
> replaced by a senders email address of my provider. Is there any way to
make
> it so my email address shows up in the From header?
>
> In the script I used fake addresses, because of client privacy reasons...
>
> <?
> $email = "[EMAIL PROTECTED]";
> $mailheaders = "From: My Name\n";
> $mailheaders .= "Reply-To: [EMAIL PROTECTED]\n\n";
>
> $message2 ="MESSAGE GOES HERE";
> mail($email,"TITLE",$message2,$mailheaders);
> ?>
>
>
Are you running this on windows?  If you are have a look at:

http://www.php.net/manual/en/ref.mail.php

The "sendmail_from" setting may be what you are looking for.  You will need
to set it using ini_set.

Regards

Lee



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to