ID:               48829
 Updated by:       j...@php.net
 Reported By:      lakshmi at nace dot co dot in
-Status:           Open
+Status:           Bogus
 Bug Type:         *Mail Related
 Operating System: Windows and Linux
 PHP Version:      5.2.10
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2009-07-07 07:27:21] sjoerd-php at linuxonly dot nl

Thank you for your report.

The issue you report is not a bug, rather a request for support. This
bug tracker is not the right place for support. Instead, try here:
IRC: irc.freenode.org ##php
Usenet: comp.lang.php, alt.comp.lang.php
Mailing lists: http://www.php.net/mailing-lists.php
WWW: http://stackoverflow.com/questions/tagged/php

------------------------------------------------------------------------

[2009-07-07 06:42:10] lakshmi at nace dot co dot in

Description:
------------
OS       Windows XP home Edition, Redhat Linux 5
Server   Apache 2.2.11
PHP      5.2.9-2


I get this:

Warning: mail(): Failed to connect to mailserver at "localhost" port
25,
verify your "SMTP" and "smtp_port" setting in php.ini or use
ini_set().

I tried by changing the php.ini and it does not work.

I hope you can help me

Request: This is the third time I am posting this query to PHP Bugs,
But
Still I haven't get any Proper Solutions.

Thanks a lot

Reproduce code:
---------------
<?php

$Name = "sam"; //senders name
$email = "a...@example.com"; //senders e-mail adress
$recipient = "a...@example.com"; //recipient
$mail_body = "The text for the mail..."; //mail body
$subject = "Subject for reviever"; //subject
$header = "From: ". $Name . " <" . $email . ">\r\n"; //optional
headerfields

if(mail($recipient, $subject, $mail_body, $header)) //mail command :)
echo "mail sent";
else
echo "mail not sent";
?>


Expected result:
----------------
It has to reach to the destination email id 

Actual result:
--------------
Mail Sent 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48829&edit=1

Reply via email to