|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-04-17 19:35 UTC] nicos@php.net
[2003-04-23 00:14 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 14:00:01 2025 UTC |
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.