note 102282 added to function.mail

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
On Windows, with the following entries in php.ini, the script below that works fine.

[mail function]
; For Win32 only.
SMTP = "my.mailserver.dom"
smtp_port = 25

<?php
$to = '"To Display Name" <[email protected]>';
$subject = 'PHP mail test';
$message = 'This message was sent via PHP!' . PHP_EOL .
           'It should work ... and it does.' . PHP_EOL . PHP_EOL . 
           'From Display Name' . PHP_EOL;
$headers = 'From: "From Display Name" <[email protected]>' . PHP_EOL .
           'Cc: "CC Display Name" <[email protected]>' . PHP_EOL .
           'X-Mailer: PHP-' . phpversion() . PHP_EOL;
if (mail($to, $subject, $message, $headers)) {
  echo 'mail() Success!' . "<br />\n";
}
else {
  echo 'mail() Failure!' . "<br />\n";
}
?>
----
Server IP: 192.41.42.26
Probable Submitter: 65.168.232.5
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit        -- https://master.php.net/note/edit/102282
Del: integrated  -- https://master.php.net/note/delete/102282/integrated
Del: useless     -- https://master.php.net/note/delete/102282/useless
Del: bad code    -- https://master.php.net/note/delete/102282/bad+code
Del: spam        -- https://master.php.net/note/delete/102282/spam
Del: non-english -- https://master.php.net/note/delete/102282/non-english
Del: in docs     -- https://master.php.net/note/delete/102282/in+docs
Del: other reasons-- https://master.php.net/note/delete/102282
Reject      -- https://master.php.net/note/reject/102282
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.