|  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
 [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-2023 The PHP Group
All rights reserved.
Last updated: Wed Dec 06 18:01:28 2023 UTC