Re: [PHP-DEV] Bug #14329 Updated: Mail() does not work
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]
[PHP-DEV] Bug #14329 Updated: Mail() does not work
ID: 14329 Updated by: derick Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: *Mail Related Operating System: WindowsCE PHP Version: 4.1.0 New Comment: Not a bug, seek for more support on the [EMAIL PROTECTED] mailinglist. Derick Previous Comments: [2001-12-03 15:18:03] [EMAIL PROTECTED] ok when i run the mail script i get : Warning: Failed to Connect in C:\Inetpub\docs\flatlinks\action.php on line 48 it says the error is in the Mail() line which is : mail($to, $subject, $message, $headers); i would realy apriechate any help, here the script: $to = $name1 $mail1; $subject = Hey, its $from; $message = ' html head titleHello/title /headbodyleft ?php echo $name1; ? p Hi /p /left/body/html '; /* set the Content-type header to send html mail */ $headers = MIME-Version: 1.0\r\n; $headers .= Content-type: text/html; charset=iso-8859-1\r\n; mail($to, $subject, $message, $headers); Edit this bug report at http://bugs.php.net/?id=14329edit=1 -- 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]
[PHP-DEV] Bug #14329 Updated: Mail() does not work
ID: 14329 Updated by: hholzgra Reported By: [EMAIL PROTECTED] Status: Bogus Bug Type: *Mail Related Operating System: WindowsCE PHP Version: 4.1.0 New Comment: 1) this is a bug tracking tool, not a support forum please ask support questions on the php-general mailing list (http://www.php.net/support.php) 2) you have read the configuration instructions on http://download.php.net/manual/en/ref.mail.php ? 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; Previous Comments: [2001-12-03 15:57:43] [EMAIL PROTECTED] Not a bug, seek for more support on the [EMAIL PROTECTED] mailinglist. Derick [2001-12-03 15:18:03] [EMAIL PROTECTED] ok when i run the mail script i get : Warning: Failed to Connect in C:\Inetpub\docs\flatlinks\action.php on line 48 it says the error is in the Mail() line which is : mail($to, $subject, $message, $headers); i would realy apriechate any help, here the script: $to = $name1 $mail1; $subject = Hey, its $from; $message = ' html head titleHello/title /headbodyleft ?php echo $name1; ? p Hi /p /left/body/html '; /* set the Content-type header to send html mail */ $headers = MIME-Version: 1.0\r\n; $headers .= Content-type: text/html; charset=iso-8859-1\r\n; mail($to, $subject, $message, $headers); Edit this bug report at http://bugs.php.net/?id=14329edit=1 -- 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
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
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]
Re[2]: [PHP-DEV] Bug #14329 Updated: Mail() does not work
Hi, ? mail(holzgraefe, hartmut [EMAIL PROTECTED],test,test); ? holzgraefe... User unknown /home/hartmut/dead.letter... Saved message in /home/hartmut/dead.letter Actually I didn't pay enough attention to your error message (and you neither as it seems :)). holzgraefe is resolved to a local user which apparently isn't able to receive mails. This behaviour is quite weird, why should someome choose , as a delimiter for users? ok, ok it's mentioned in the manual, but why doesn't PHP just parse out all mail addresses? Everything containing a @ where the boundaries are either whitespace or obvious characters such as and ? Ah, and did I mention that PHP on Windows behave quite oddly? Probably because it connects directly to the SMTP server rather than piping to sendmail/qmail. Is this now a feature or a bug? 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[2]: [PHP-DEV] Bug #14329 Updated: Mail() does not work
Hi, ? mail(holzgraefe, hartmut [EMAIL PROTECTED],test,test); ? This doesn't work because of the comma. sure, but this is a common real life mistake so i strongly recommend using quotes for real names in mail adresses just to be sure, although RFC822 doesn't require their use well, the problem is how PHP parses out all mail adresses. Many MUAs also use syntaxes like: [EMAIL PROTECTED] (Full Name) quite odd, but I think having seen this from a t-online-mailer, which, apparently, is the biggest ISP in germany. I don't support such proprietary behaviour, but nevertheless (if you don't mind) I'd like to add the way how PHP parses out the mail adresses to the wishlist of future PHP development. Additionaly, the SMTP wrapper which is used by PHP/Windows should behave the same way as the linux version does. 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]