Menu

I don't receive mails

Help
Jan-peter
2007-08-14
2013-06-03
  • Jan-peter

    Jan-peter - 2007-08-14

    I installed PHP Formgen and everything seems to be Ok, I can complete the order see the confirmation mail.
    But the email I should recieve doesn't arrive.
    I used a special created emailadddress for this for in the configuration.
    Doing the test with my normal address also doesn't work.

    Somebody an idea what can be wrong? 

     
    • TNTEverett

      TNTEverett - 2007-08-15

      Usually these problems end up being simple but without seeing your form and processor.php file I can not give you any advice.  Have you contacted your host tech support to see if the mail() function should work?

       
      • TNTEverett

        TNTEverett - 2007-08-17

        There does not appear to be anything wrong with the processor.php file.  Have you contacted your host to ask why this would not work?

         
    • Jan-peter

      Jan-peter - 2007-08-17

      mail function works in other programma's verry well ( a newsletter mailing and a banner exchange)

      Here the procesor.php:

      <?php

      $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

      session_start();
      if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
      mail("dvd.pggglim@gen-exchange.com","phpFormGenerator - Form submission","Form data:

      Voornaam:: " . $_POST['field_1'] . "
      Naam:: " . $_POST['field_2'] . "
      Adres:: " . $_POST['field_3'] . "
      Postnummer:: " . $_POST['field_4'] . "
      Woonplaats:: " . $_POST['field_5'] . "
      Land:: " . $_POST['field_6'] . "
      Telefoon:: " . $_POST['field_7'] . "
      E-mailadres:: " . $_POST['field_8'] . "
      Website:: " . $_POST['field_9'] . "
      Opmerkingen:: " . $_POST['field_10'] . "
      Betalingswijze:: " . $_POST['field_11'] . "
      Ik bestel deze DVD omdat ik deze familinaam onderzoek:: " . $_POST['field_12'] . "
      Ik bestel deze DVD omdat deze gemeente mij intereseert:: " . $_POST['field_13'] . "
      Omwille van een andere reden:: " . $_POST['field_14'] . "
      Voor de PRO-GEN utilities:: " . $_POST['field_15'] . "
      Ik ken deze DVD via:: " . $_POST['field_16'] . "

      powered by phpFormGenerator.
      ");

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

      ?>

      My form you can see at:

      http://gen-exchange.com/form/form.html

      Regards

      JPN

       
    • Jan-peter

      Jan-peter - 2007-08-21

      I had a lot of mails to my host, but at the end of the day my problem is still not solved.

      Everythings works fine except I don't receive the mail.
      You already looked to my processor.php and this is OK.
      In your latest mail you mentioned something about setting the from fields ( which I don't understand)
      I am using vs3.0 and what you show is also in my processor.php.

      By my host it is not possible to send mail to an external address so I create a addres at my account and forward this then to my external address.
      I do this with other programs aswell and it works fine.
      Are there additionnal settings required? I have the feeling that the mail never reach my mailbox at the host and so there is nothing to forward.

      Can you help me? I like this form created by PHPFormgen but if it doesn't work I can't use it.

       
      • TNTEverett

        TNTEverett - 2007-08-21

        Ask these questions of your web host provider.
        1.) You want to send email from a php script.  Is it possible to use the php mail() function which by default sends mail to the "localhost" mail server? 
        2.) If not what PHP mail function or application can be used?
        3.) What documentation is available that explains mail sending features and restrictions?

        I don't understand why your host would have any restrictions for sending email from a PHP script.  I have never seen any web host with any mail sending restrictions beyond "number of emails sent per minute or per day".

         
    • Jan-peter

      Jan-peter - 2007-08-26

      Sorry for the late repley I was travelling .

      I forwarded your questions to my host and this was the answer:

      -------------------
      As far as I can see the php mail() function is working just fine. I have tested to send one e-mail via this script:

      www/gen-exchange.com/testmail.php

      It was received without any problems. Please ask your developer to check this mailtest script.

      -------------------

       
      • TNTEverett

        TNTEverett - 2007-08-27

        The testmail script returne "Mail OK" but without see the script this means nothing to me.  If your host believes that the mail function should work then it is time to start debugging yours again.  Send me a copy of the process.php file and a link to your form.  I will test it again without modification to see if the mail function works on my host. 

         
    • Jan-peter

      Jan-peter - 2007-08-27

      proces.php

      <?php

      $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

      session_start();
      if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
      mail("webmaster@gen-exchange.com","phpFormGenerator - Form submission","Form data:

      Voornaam:: " . $_POST['field_1'] . "
      Naam:: " . $_POST['field_2'] . "
      Adres:: " . $_POST['field_3'] . "
      Postnummer:: " . $_POST['field_4'] . "
      Woonplaats:: " . $_POST['field_5'] . "
      Land:: " . $_POST['field_6'] . "
      Telefoon:: " . $_POST['field_7'] . "
      E-mailadres:: " . $_POST['field_8'] . "
      Website:: " . $_POST['field_9'] . "
      Opmerkingen:: " . $_POST['field_10'] . "
      Betalingswijze:: " . $_POST['field_11'] . "
      Ik bestel deze DVD omdat ik deze familinaam onderzoek:: " . $_POST['field_12'] . "
      Ik bestel deze DVD omdat deze gemeente mij intereseert:: " . $_POST['field_13'] . "
      Omwille van een andere reden:: " . $_POST['field_14'] . "
      Voor de PRO-GEN utilities:: " . $_POST['field_15'] . "
      Ik ken deze DVD via:: " . $_POST['field_16'] . "

      powered by phpFormGenerator.
      ");

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

      ?>

      Url to my form:

      http://gen-exchange.com/bestel/form.html 

       
      • TNTEverett

        TNTEverett - 2007-08-27

        I just sent a message using my name "Tom Everett" and email address "everettt@...".  Let me know if you get it.

         

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.