ID:               17322
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           No Feedback
 Bug Type:         Mail related
 Operating System: Windows 2000
 PHP Version:      4.0CVS-2002-05-20
 New Comment:

Using :
- W2K Pro SP2
- Apache (version : Apache_1.3.27-win32-x86-no_src)
- PHP (version : php-4.3.0-Win32)
mail() works fine for me. I tested using different syntax :
"something" <[EMAIL PROTECTED]> just doesn't work.
<[EMAIL PROTECTED]> works (but < & > are not usfull at all), so just use
:
[EMAIL PROTECTED]

>[21 May 2002 4:49am] [EMAIL PROTECTED] 
>First, the From: "DVD
>Plaza (Support)" <[EMAIL PROTECTED]> syntax isn't >supported on
>win32 and never was. Only addresses in the simple form of
>[EMAIL PROTECTED]
>are supported.

Here is a simple exemple that worked for me :
function send_mail($from_email, $to_email, $subject, $message) {
        $header = "MIME-Version: 1.0\r\n";
        $header .= "Content-Type: text/plain; charset=iso-8859-1\r\n";
        $header .= "From: ".$from_email."\r\n";
        $header .= "Reply-To : ".$from_email."\r\n";
        $header .= "Return-Path : ".$from_email."\r\n";
        $header .= "X-Priority: 1\r\n";
        $header .= "X-MSMail-Priority: High\r\n";
        $header .= "X-Mailer: PHP4\r\n";
        return(mail($to_email, $subject, $message, $header));
}


Previous Comments:
------------------------------------------------------------------------

[2002-09-26 19:49:35] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



------------------------------------------------------------------------

[2002-09-11 11:08:53] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip



------------------------------------------------------------------------

[2002-06-02 19:14:41] [EMAIL PROTECTED]

What's an MTA?

We've since reverted again to PHP 4.2.1, and left it there (with a
cookie workaround) as the mail issue was crippling a major promotion we
are currently running.  We've had no further mail issues - so
definitely specific to 4.3

------------------------------------------------------------------------

[2002-06-02 11:44:19] [EMAIL PROTECTED]

I've gone through the code and I'm unable to reproduce the problem.
What kind of MTA are you using?

Do you have another, simple example which used to work in < 4.3 ?

------------------------------------------------------------------------

[2002-05-22 21:12:55] [EMAIL PROTECTED]

BLOODY COMPUTERS!!!  PHP 4.2.1's mail handling is fine as I originally
said, the reason I was missing mail yesterday was due to IE on my Mac
not refreshing the pages I was constantly reloading.  Mail is flowing
through just fine and refreshing one of my forms via my PC causes a
mail every time.

So it's what I originally said - mail fails under PHP 4.3.dev but works
under PHP 4.2.1.  Sorry for the confusion... argh!!!

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/17322

-- 
Edit this bug report at http://bugs.php.net/?id=17322&edit=1

Reply via email to