php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48829 mail connectivity problem
Submitted: 2009-07-07 06:42 UTC Modified: 2009-07-07 11:33 UTC
From: lakshmi at nace dot co dot in Assigned:
Status: Not a bug Package: *Mail Related
PHP Version: 5.2.10 OS: Windows and Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lakshmi at nace dot co dot in
New email:
PHP Version: OS:

 

 [2009-07-07 06:42 UTC] 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 = "am@example.com"; //senders e-mail adress
$recipient = "am1@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 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-07 07:27 UTC] 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 11:33 UTC] jani@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC