#23251 [Opn->Fbk]: Problem with mail FUNCTION
| From: | nicos@php.net | Date: | Fri, 18 Apr 2003 00:35:29 +0000 |
| Subject: | #23251 [Opn->Fbk]: Problem with mail FUNCTION | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-37830@lists.php.net to get a copy of this message | ||
ID: 23251
Updated by: nicos@php.net
Reported By: cmrkind at yahoo dot com
-Status: Open
+Status: Feedback
Bug Type: Mail related
Operating System: WINDOWS 98
-PHP Version: 4.3.0
+PHP Version: 4.0.1
New Comment:
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?
Previous Comments:
------------------------------------------------------------------------
[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