Mathieu,
I believe the feature you are looking for has been made available in the
new PHP 4.0.5 that is upcoming. They have added a 5th paramether to the
mail() function so you can actually pass sendmail command line arguments
such as -f. For those of us not running the development version, someone
was kind enough to post a really good work around that isn't hard and
gives the same functionality. I won't post it here, but it can be found
as the last of the user comments at
http://www.php.net/manual/en/function.mail.php dated March 9th at 5:02
am. I implemented this on my servers and it works great. You do have to
add the one line to the scripts that use the mail function, but that is
really it after sendmail is configured.
Hope that was what you were looking for.
Tim Frank
>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
On 16/03/01, 5:05:13 AM, [EMAIL PROTECTED] (Mathieu Arnold) wrote
regarding Re: [PHP] mail() implementation problem:
> Manuel Lemos wrote:
> >
> > Hello,
> >
> > Mathieu Arnold wrote:
> > >
> > > Hi
> > >
> > > The actual implementation of the mail fonction use sendmail -t and
> > > relies on sendmail to parse the headers to get the recipients.
> > > It would be great if it was possible to switch from this way of using
> > > sendmail to a more classic
> > > sendmail -f sender rcpt
> > > it should be quite easy, but I lack time to do it.
> >
> > You may want to try this PHP MIME message composing and sending class
> > that has subclasses for sending messages using directly sendmail, qmail
> > or even a SMTP server.
> >
> > http://phpclasses.UpperDesign.com/browse.html/package/9
> looks nice, but I'm not going to ask all my clients to change their php
> scripts ;)
> I just need to change the way php calls sendmail :)
> I believe I'm going to do it myself next week or so.
> --
> Mathieu Arnold
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]