Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

What is the basic difference between using php mail function and smtp?

What is the basic difference between using php mail function and smtp? I used the mail function in my form and recieved the following 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:\Inetpub\vhosts\knowledgewoods.in\httpdocs\online\pmp\OnlineRegistrationGeneric.php on line 94

Please Help...!!!

Hi Bhaskar,

I'm working on that myself. I'm using Debian Linux with Apache2. I see you are using Windows. I have a php script for mailing data from an html form that works from my website at Godaddy but not mt local server. I'm going to contact them and see if they can help. On my local server I don't get error messages, the server seems to think everything went well.

Jeff