Log in

View Full Version : PHP email form



Medyman
03-21-2007, 06:24 PM
What exactly is needed to deploy a PHP email form?

This is probably a really foolish question but what features does my webhost need to have for me to use a PHP email form? Do I need SMTP server acces or can I just use a PHP form with say a "Gmail" or "Hotmail" account attached.

thetestingsite
03-21-2007, 06:27 PM
for a PHP email form to function properly, your host has to have some sort of SMTP service either on their server, or on a remotley hosted one. This must be specified in the php.ini file.

To find out what (if any host) they use, make a php file that displays the PHP Info.



<?php
phpinfo();
?>


Look for SMTP and SMTP port. Usually it is localhost with the port 25. Different for every host though.
Hope this helps.