Bug #62154 [NEW]: warning

From: Date: Fri, 25 May 2012 09:37:09 +0000
Subject: Bug #62154 [NEW]: warning
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-13598@lists.php.net to get a copy of this message
From: puja_lakhotiya at yahoo dot co dot in Operating system: windows XP PHP version: 5.3.13 Package: Website problem Bug Type: Bug Bug description:warning Description: ------------ Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() {got such error} Test script: --------------- <html><body> <h2>Aliens Abducted Me - Report an Abduction</h2> <?php $when_it_happened=$_POST['whenithappened']; $how_long=$_POST['howlong']; $how_many=$_POST['howmany']; $alien_description = $_POST['aliendescription']; $what_did=$_POST['whattheydid']; $fang_spotted = $_POST['fangspotted']; $email = $_POST['email']; $other=$_POST['other']; $name=$_POST['firstname'] .''. $_POST['lastname']; $to="pooja.kalantri@gmail.com"; $subject="Abducation Form"; $msg="$name you were abducted $when_it_happened and were gone for $how_long.\n". "Number of alien:$how_many\n". "describe Them:$alien_description\n". "The alien did this:$what_did\n". "Was Fang there? $fang_spotted\n". "I want to add $other"; mail($to,$msg, $subject ,"From:". $email); echo 'Thanks for submiitting form.<br>'; echo 'you were abuducted' . $when_it_happened; echo ' and were gone for ' . $how_long . '<br />'; echo 'Number of alien'. $how_many .'<br/>'; echo 'Describe them: ' . $alien_description . '<br />'; echo 'The alien did this:'. $what_did .'<br/>'; echo 'Was Fang there? ' . $fang_spotted . '<br />'; echo 'Your email address is ' . $email; echo 'I want to add' . $other .'<br/>'; echo 'I am'.$name; ?> </body></html> Expected result: ---------------- get the mail in inbox Actual result: -------------- Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() -- Edit bug report at https://bugs.php.net/bug.php?id=62154&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62154&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62154&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62154&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62154&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62154&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62154&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62154&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62154&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62154&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62154&r=support Expected behavior: https://bugs.php.net/fix.php?id=62154&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62154&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62154&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62154&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62154&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62154&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62154&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62154&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62154&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62154&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62154&r=mysqlcfg

« previous php.webmaster (#13598) next »