Results 1 to 2 of 2

Thread: PHP email form

  1. #1
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default PHP email form

    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.

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    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.

    Code:
    <?php
    phpinfo();
    ?>
    Look for SMTP and SMTP port. Usually it is localhost with the port 25. Different for every host though.
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •