|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49822 error using mail functions
Submitted: 2009-10-09 13:12 UTC Modified: 2009-10-10 11:57 UTC
From: diya_pratap_malhotra at yahoo dot co dot in Assigned:
Status: Not a bug Package: Mail related
PHP Version: 5.3.0 OS: Windows
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.
Block user comment
Status: Assign to:
Bug Type:
From: diya_pratap_malhotra at yahoo dot co dot in
New email:
PHP Version: OS:


 [2009-10-09 13:12 UTC] diya_pratap_malhotra at yahoo dot co dot in
when using the mail() function m getting an error as the following 

Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\mscit9\EmailSend.php on line 34

when i changed in php.ini even then m getting another error msg

Tell me exactly what to configure in php.ini and how to use the mail() function to send the mail 


Reproduce code:
From manual page: function.mail#Description


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-10 11:57 UTC]
Thank you for your report.

This site,, is not for requesting support but for filing bugs in PHP. For support, please see
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Mar 04 02:01:29 2024 UTC