Computing.Net > Forums > Web Development > How to send mail in php localhost

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to send mail in php localhost

Reply to Message Icon

Name: baby1234
Date: February 16, 2009 at 23:48:28 Pacific
OS: Windows XP
CPU/Ram: 504
Product: Donknow / Benq
Subcategory: PHP
Comment:

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 problem...how can solve it...thank u all...urgent urgent...



Sponsored Link
Ads by Google

Response Number 1
Name: shutat
Date: February 17, 2009 at 15:48:22 Pacific
Reply:

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.

HTH


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: How to send mail in php localhost

how to use filedsn in php www.computing.net/answers/webdevel/how-to-use-filedsn-in-php-/3640.html

how to display images in PHP www.computing.net/answers/webdevel/how-to-display-images-in-php-/2164.html

mail problem www.computing.net/answers/webdevel/mail-problem/4198.html