Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2005
    Posts
    8

    Unanswered: PHP form mailing question

    Here is the code I am using just to test the mail() function:

    <?
    mail('hoohaa98@yahoo.com','This is the subject','This is the body.');
    ?>

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    Can anyone help because this is not working. I have heard that when using PHP (as opposed to Coldfusion or ASP) it depends on your server as to whether you can send messages or not. Is this the case and if so how can I find out if my server will allow me to do this?

    Thanks in advance.

  2. #2
    Join Date
    Jul 2004
    Posts
    23
    Create a blank file and paste in:
    <?php
    phpinfo()
    ?>
    Save it as something, upload, go to it on your server, and search the page for "sendmail_path"
    If you find it and there is a path, then you have the ability to send using the mail() function in PHP.
    If not, try asking your host
    SnapSlides.Com - Create slideshows online to share with friends and family.

Posting Permissions

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