The reason for this is due to the fact that PHP can override Sendmail but
Sendmail can not override the Unix/Linux Operating System.  So, once
sendmail work without a problem in O/S, including inside the domain on the
local network where hte machine reside and outside of the local network
then you can safely use the 5th parameter...

"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> That doesn't work either because this machine's SMTP doesn't know it's
user
> in it's own domain, so a modification of the /etc/hosts file is
> necessnary....
>
> "Danny Shepherd" <[EMAIL PROTECTED]> wrote in message
> 023901c2d836$773f83c0$6400a8c0@DANNYS">news:023901c2d836$773f83c0$6400a8c0@DANNYS...
> > I'd say an even simpler workaround would be to add '[EMAIL PROTECTED]'
as
> > the fifth parameter to the mail function - just as in example 3 of the
> docs.
> >
> > Danny.
> >
> > ----- Original Message -----
> > From: "Scott Fletcher" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, February 19, 2003 3:43 PM
> > Subject: [PHP] Finally!!! A workaround to mail() in PHP...
> >
> >
> > > Finally a workaround to the problem in mail() in PHP....  I did the
> > posting
> > > somewhere, so I'll cut to the chase by posting it here....  My recent
> > > posting does not work too well....
> > >
> > > --clip--
> > > This is for any Unix or Linux machine using the Sendmail.  However, no
> > > guarentee that it would work in Windows.
> > >
> > > Some SMTP won't accept e-mail with the "From: host@domain" without the
> > > suffix "com", like "domain.com", so using the "From: [EMAIL PROTECTED]"
> > option
> > > in the $header in the mail() does not solve the problem for me.
> > >
> > > Someone suggest using the php.ini with the configuration by adding the
> "-f
> > > [EMAIL PROTECTED]" to the sendmail path.  Example look like this....
> > >
> > > --clip--
> > > sendmail_path = /usr/sbin/sendmail -t -i -f [EMAIL PROTECTED]
> > > --clip--
> > >
> > > This is not an option for me because it is limit to one user, not more
> > than
> > > one and it override the "From: [EMAIL PROTECTED]" option in the $header
in
> > > mail()..  So, Finally there is a workaround to the problem and it is
> very
> > > simple....  Just add this entrie to the /etc/hosts file in Unix or
> Linux.
> > > Just substitute the word in bracket for a value....
> > > --clip--
> > > <ip address>        <machine's_host.domain.com>
> > > --clip--
> > >
> > > Example ...
> > > --clip--
> > > 123.456.789.012      xyz.abc.com
> > > --clip--
> > >
> > > Make sure your machine do the search order with the host first before
> the
> > > DNS or Nameserver.  In my case in AIX, is "/etc/netsvc.conf".
> > >
> > > Hope
> > >
> > > Make sure your machine is set to read the host file first before the
DNS
> > or
> > > the nameserver, if not then make some changes to it.  In my case for
> AIX,
> > it
> > > is "/etc/netsvc.conf"...
> > >
> > > Hope this help....
> > > --clip--
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>



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

Reply via email to