# PHP form mail problems

**URL:** <https://forum.kirupa.com/t/php-form-mail-problems/66320>\
**Category:** programming\
**Created:** [October 4, 2004, 9:32pm UTC](https://forum.kirupa.com/t/php-form-mail-problems/66320 "2004-10-04T21:32:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomtom\_dude](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tomtom\_dude](https://forum.kirupa.com/u/tomtom_dude)\
**Post date:** [October 4, 2004, 9:32pm UTC](https://forum.kirupa.com/t/php-form-mail-problems/66320/1 "2004-10-04T21:32:37Z")

</div>

I am just starting to use PHP and I thought I would take the tutorial on this site about PHP form mail. When I tested the script, I got 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 \*\*http://localhost/tests/mailer.php](http://localhost/tests/function.mail)\*\* on line **29** ”. I was wondering if anyone would be able to help me with my situation. Thanks.
