#23251 [Fbk->Bgs]: Problem with mail FUNCTION

From: Date: Wed, 23 Apr 2003 05:14:33 +0000
Subject: #23251 [Fbk->Bgs]: Problem with mail FUNCTION
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-38120@lists.php.net to get a copy of this message
ID: 23251 Updated by: sniper@php.net Reported By: cmrkind at yahoo dot com -Status: Feedback +Status: Bogus Bug Type: Mail related Operating System: WINDOWS 98 PHP Version: 4.0.1 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. and check your php.ini (make sure you update it too, it has changed since 4.0.1 a lot) Previous Comments: ------------------------------------------------------------------------ [2003-04-17 19:35:29] nicos@php.net Hello, First you NEED to upgrade to PHP-4.3.0 at least. Then you should really configure your settings in your php.ini. Are you sure you run an SMTPd on your localhost? ------------------------------------------------------------------------ [2003-04-16 22:48:42] cmrkind at yahoo dot com Hello, I am working php 4.0.1 in apache server,win32 environment.In php.ini configuration [mail function] SMTP=localhost ;for win32 only sendmail_from=me@localhost.com ;for win32 only ;sendmail_path=;for unix only,may supply arguments as well I have met a problem when i am going to execute mail() function. <? $mail_to="cmrkind@yahoo.com"; $mail_sub="Testing"; $mail_body="This is a test"; if(mail($mail_to,$mail_sub,$mail_body)) { echo "Successfully sent"; } else { echo "Sorry,Could not sent" ; } ?> In the above program should give the result "Successfully sent" But it gives Warning: Failed to Receive in c:\apache\htdocs\mensanswers\ramesh\mailtest.php on line 6 Sorry,Could not sent So, Please any one know about the problem then help me to solve. Thanking you, Truely , Ramesh.c. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23251&edit=1

« previous php.bugs (#38120) next »