How to send mail in php localhost

Donknow / Benq
February 16, 2009 at 23:48:28
Specs: Windows XP, 504
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 C:\wamp\www\New Folder (5)\form_mail_3.6\inc\lib\htmlMimeMail.php on line 680

this problem occur when i submit my form...can anyone tell me what is the can solve it...thank u all...urgent urgent...

See More: How to send mail in php localhost

Report •

February 17, 2009 at 15:48:22
If your web server is installed on windows, then you may need to download and install a mail daemon. Pegasus offers a free one. I've used an older version with apache 2 and php 5.2 on a 2K machine and it worked fine under the localhost.

If you're running a flavor of linux, then the mail daemon may not be installed; I'm not sure about other operating systems.

[edit]I believe windows also has a smtp server that can be installed via the control panel. Choose add/remove programs -> add/remove windows components -> internet information service -> "select details"

However, I haven't used the service, so I don't have any idea on how it's setup.


Report •
Related Solutions

Ask Question