anyone here who've already encountered this error??

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\orderprocess.php on line 25

Recommended Answers

Mail function does not work on localhost. If you want to test the mail function on your localhost, you need to setup the mail server on your machine. You can search on google.

Jump to Post

All 3 Replies

Obvious question: do you have a mail server running?

Mail function does not work on localhost. If you want to test the mail function on your localhost, you need to setup the mail server on your machine. You can search on google.

thanks for the replies.., i kinda figured it out..., =)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.