ID:               21930
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Mail related
 Operating System: Windows 2000 Proffiessional
 PHP Version:      4.3.0
 New Comment:

I do not understand your Q


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

[2003-01-29 06:49:44] [EMAIL PROTECTED]

So does it work when it's send as part of the headers?


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

[2003-01-29 06:31:51] [EMAIL PROTECTED]

I take details from :
http://www.php.net/manual/en/function.mail.php

because it happen with me also

the smtp server with iis5 does not support a TO NAME,
you can send it to an email but not along with a name.
to say $to = "Miki <[EMAIL PROTECTED]>"; would not be accepted and you
will
get an error 501 Invalid address.
if you see this error, just try NOT sending emails with a TO name,
only
the email should be entered

That is given to me..
SMTP server response: 550 5.1.1 ... User unknown in
C:\Projects\fnoon\functions.php on 138
I want to comment that I USE the ISP SMTP , not IIS SMTP
and also not work..

Now I think I understand what the problem ..
THAT BECAUSE I USE ARABIC EMAIL FORMAT ..
SORRY FOR MAKE NOISE AND VERY THMKS TO YOU SNIPER :P

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

[2003-01-29 06:31:41] [EMAIL PROTECTED]

I take details from :
http://www.php.net/manual/en/function.mail.php

because it happen with me also

the smtp server with iis5 does not support a TO NAME,
you can send it to an email but not along with a name.
to say $to = "Miki <[EMAIL PROTECTED]>"; would not be accepted and you
will
get an error 501 Invalid address.
if you see this error, just try NOT sending emails with a TO name,
only
the email should be entered

That is given to me..
SMTP server response: 550 5.1.1 ... User unknown in
C:\Projects\fnoon\functions.php on 138
I want to comment that I USE the ISP SMTP , not IIS SMTP
and also not work..

Now I think I understand what the problem ..
THAT BECAUSE I USE ARABIC EMAIL FORMAT ..
SORRY FOR MAKE NOISE AND VERY THMKS TO YOU SNIPER :P

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

[2003-01-29 06:06:56] [EMAIL PROTECTED]

PLEASE don't use the 'Add comment' link!!!
It's your own report, use the 'Edit submission' ALWAYS.

Anyway, this works fine for me:

mail('"someone somehwere" <[EMAIL PROTECTED]>', 'subject',
'message');



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

[2003-01-29 01:57:43] [EMAIL PROTECTED]

<?
function
SendHtmlMsg($To,$From,$Sendername,$Receivername,$subject,$msg){
        mail($To, $subject, $msg,
             "To: $Receivername <$To>\n" .
                 "From: $Sendername <$From>\n" .     
                 "X-Mailer: PHP 4.3\n".
                 "MIME-Version: 1.0\n" .
                 "Content-type: text/html; charset=-1256");
}
                         $From="[EMAIL PROTECTED]";
                         $Sendername = "Person";
                         $To = "[EMAIL PROTECTED]";
                         $Receivername = "Test Person";
                         $subject ="Test";
                         $msg = "Test<br/>Test";
SendHtmlMsg($To,$From,$Sendername,$Receivername,$subject,$msg);
?>

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

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/21930

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

Reply via email to