Page 1 of 1

how do I set up php to send mail?

Posted: Sun Oct 10, 2004 8:05 am
by Wildwood
I want to set up a basic form for users to send information to me....tested and received the following message

Warning: 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:\Program Files\Apache Group\Apache2\htdocs\TMP7bj935dcai.php on line 3

How do I specify a smtp setting. Do I need to specify a local mail server or can I use a simple script that I can download (preferrred).
Not too sure how to locate the PHP.INI file have been looking and does not appear............or maybe under a different name.
Any help will be appreciated.

Posted: Sun Oct 10, 2004 8:40 am
by mudkicker
you can set your mail server settings in php.ini

Posted: Sun Oct 10, 2004 10:08 am
by jabbaonthedais
You can find your php.ini file in Apache\php

Posted: Sun Oct 10, 2004 10:09 am
by feyd
[devnet]+mailserver +mail +php.ini[/devnet] :roll: