#48829 [NEW]: mail connectivity problem
| From: | lakshmi at nace dot co dot in | Date: | Tue, 07 Jul 2009 06:42:11 +0000 |
| Subject: | #48829 [NEW]: mail connectivity problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-139369@lists.php.net to get a copy of this message | ||
From: lakshmi at nace dot co dot in
Operating system: Windows and Linux
PHP version: 5.2.10
PHP Bug Type: *Mail Related
Bug description: mail connectivity problem
Description:
------------
OS Windows XP home Edition, Redhat Linux 5
Server Apache 2.2.11
PHP 5.2.9-2
I get this:
Warning: mail(): Failed to connect to mailserver at "localhost" port
25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set().
I tried by changing the php.ini and it does not work.
I hope you can help me
Request: This is the third time I am posting this query to PHP Bugs, But
Still I haven't get any Proper Solutions.
Thanks a lot
Reproduce code:
---------------
<?php
$Name = "sam"; //senders name
$email = "am@example.com"; //senders e-mail adress
$recipient = "am1@example.com"; //recipient
$mail_body = "The text for the mail..."; //mail body
$subject = "Subject for reviever"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional
headerfields
if(mail($recipient, $subject, $mail_body, $header)) //mail command :)
echo "mail sent";
else
echo "mail not sent";
?>
Expected result:
----------------
It has to reach to the destination email id
Actual result:
--------------
Mail Sent
--
Edit bug report at http://bugs.php.net/?id=48829&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48829&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48829&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48829&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48829&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48829&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48829&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48829&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48829&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48829&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48829&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48829&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48829&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48829&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48829&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48829&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48829&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48829&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48829&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48829&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48829&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48829&r=mysqlcfg