Re: [PHP-DEV] Bug #14329 Updated: Mail() does not work

2001-12-04 Thread Hartmut Holzgraefe

Daniel Lorch wrote:

ok, ok it's mentioned in the manual, but why
doesn't PHP just parse out all mail addresses?

the unix implementation doesn't parse the parameters at all,
it just passes them transparently to the local MTA

 
 .. which makes the behaviour of mail() unpredictable.


no, it's all specified in RFC822


the win32/SMTP implementation in its current doesnt pay much attention
to RFC821/822 conformance. period.

 
 anyway, the average PHP/win user will never find out about this
 problem :)

well, from my experience they definetly do ... :(

anyway, if you have a look at the mail section of the bug
database you will see that a rewrite of mail() for win32
is on my agenda, although near the bottom of it ...

PS: could you please teach *your* MUA to send a single reply
 to all instead of seperate messages to the list and me,
 leading to duplicates in my inbox?

-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77




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




Re: [PHP-DEV] Bug #14329 Updated: Mail() does not work

2001-12-03 Thread Daniel Lorch

hi,

3) your script would most likely fail even if

   the mail server talked to you

 $to  = $name1 $mail1;

   is wrong, you have to quote the real name:

 $to  = \$name1\ $mail1;

This is not true. PHP parses out all mail adresses which then are put
into the mail ENVELOPE. everything else doesn't influence the
behaviour of who actually receives the mail (i.e. everything else goes
into the mail BODY and all data there is just voluntary, if you want
to see it like that).

quotes are nice, but they are parsed by the MUA (mail user agent =
mail client) of the user and are just for displaying purposes NOT for
delivering purposes.

Kind Regards,
  Daniel Lorch



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




Re: [PHP-DEV] Bug #14329 Updated: Mail() does not work

2001-12-03 Thread Hartmut Holzgraefe

Daniel Lorch wrote:

 This is not true. PHP parses out all mail adresses which then are put
 into the mail ENVELOPE. everything else doesn't influence the
 behaviour of who actually receives the mail (i.e. everything else goes
 into the mail BODY and all data there is just voluntary, if you want
 to see it like that).
 
 quotes are nice, but they are parsed by the MUA (mail user agent =
 mail client) of the user and are just for displaying purposes NOT for
 delivering purposes.
 




hartmut in /export/disk1/home/hartmut on fermi
hartmut  php
?
mail(holzgraefe, hartmut [EMAIL PROTECTED],test,test);
?
holzgraefe... User unknown
/home/hartmut/dead.letter... Saved message in /home/hartmut/dead.letter
X-Powered-By: PHP/4.0.4
Content-type: text/html


hartmut in /export/disk1/home/hartmut on fermi
hartmut 


-- 
Hartmut Holzgraefe  [EMAIL PROTECTED]  http://www.six.de  +49-711-99091-77




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