Hi,
Thank you,  William,
But my cgi uses #!/bin/sh and the mail command, ad example:

echo "the message" | /bin/mail -s "Subject" "list@localhost"

Then I can't use your suggestion, I'm afraid.

Any suggestion?
Thanks,
�scar.



El jue, 03-01-2002 a las 19:13, William R. Nash escribi�:
> try this:
> 
> $mailheaders = "From my domain.com <> \n";
> $mailheaders .= "Reply-To: $reply-email\n\n";
> 
> mail($to, $subject, $msg, $mailheaders);
> 
> 
> this is just some example you will need to change it for your system.
> 
> Let me know how it work i working on the same project at my place.
> 
> Bill Nash.
> 
> 
> ----- Original Message -----
> From: "Oscar" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, January 03, 2002 1:01 PM
> Subject: [expert] mail sent by apache user
> 
> 
> Hi all,
> I have wrote a very simple mail list system using a web form and
> postfix.
> When a user clicks the send button, the form data is sent, using the
> 'mail' command, to a list defined in /etc/postfix/aliases
> The system works ok, but the message appears to be sent by "Apache
> User". Not serious... :-P
> How can I change the sender identity?.
> Thanks
> �scar.
> 
> --
>   .-.
>   oo|
>  /`'\  Usuario de Linux Registrado #227443
> (\_;/) http://counter.li.org/




Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to