Menu

Now email received

Help
Anonymous
2010-06-02
2013-06-03
  • Anonymous

    Anonymous - 2010-06-02

    Hi there,

    I'm not receiving an email from my form… any ideas?
    http://www.pfm-ltd.com/form.html

    The file is processor.php
    <?php

    $where_form_is="http://".$_SERVER.strrev(strstr(strrev($_SERVER),"/"));

    session_start();
    if( ($_SESSION==$_POST) && (!empty($_POST)) ) {
    mail("peter.kirkwood@btinternet.com","phpFormGenerator - Form submission","Form data:

    Name: " . $_POST . "
    Email: " . $_POST . "
    Tel: " . $_POST . "
    Message: " . $_POST . "

    powered by phpFormGenerator.
    ");

    include("confirm.html");
    }
    else {
    echo "Invalid Captcha String.";
    }

    ?>

     
  • TNTEverett

    TNTEverett - 2010-06-02

    Test your server setup by creating this file and pointing your browser to it.  Be sure to delete it when you are done.  Assume the file name is emailtest.php

    <?php
    mail("peter.kirkwood@btinternet.com","phpMail Function Test","Testing Email");
    ?>

    If this works then your server is setup to send mail as you would do with your form. 
    If this works and your form does not then try removing the line
    $where_form_is="http://".$_SERVER.strrev(strstr(strrev($_SERVER),"/"));

    Let me know if you still can not get it to work. 

     
  • Anonymous

    Anonymous - 2010-06-02

    I've done that and waited about 5 mins… no email. I guess that means that my server is not setup to send it that way.

    I'll look at the server support pages more, but any other ideas?

    Thanks

     
  • TNTEverett

    TNTEverett - 2010-06-02

    If the simple case does not work you need to trace the sendmail through the server log files.  No other ideas.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.