#23251 [NEW]: Problem with mail FUNCTION
| From: | cmrkind at yahoo dot com | Date: | Thu, 17 Apr 2003 03:48:42 +0000 |
| Subject: | #23251 [NEW]: Problem with mail FUNCTION | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37787@lists.php.net to get a copy of this message | ||
From: cmrkind at yahoo dot com
Operating system: WINDOWS 98
PHP version: 4.3.0
PHP Bug Type: Mail related
Bug description: Problem with mail FUNCTION
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 bug report at http://bugs.php.net/?id=23251&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23251&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23251&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23251&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23251&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23251&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23251&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23251&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23251&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23251&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23251&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23251&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23251&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23251&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23251&r=gnused