contact us (not working)

Discussion in 'General' started by cmsits, May 22, 2013.

  1. cmsits

    cmsits New Member

    probably something simple, but simple being my middle name I need help

    I've created a contact us email form

    name:
    email:
    phone:
    comments:

    but its not working from my webpage created in ispconfig 3
    web directorie?

    am i missing something simple?

    i tested the form on a free web hosting site and it worked fine?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Which method / command do you use to send the email? Which error do you get in the mail.log when you submit the contact form?
     
  3. monkfish

    monkfish Member

    http://www.howtoforge.com/forums/showthread.php?t=58408

    May I respectfully suggest you've put far too little information in your post for anybody to even consider where your problem may lie.

    However, thoughts are:-

    - from your limited description sounds like form-to-email type page.

    - Is it done in PHP? Do you have all required libraries installed? Does the site in question have permissions to run the script? Is suExec getting in the way?

    - are you getting an error message when you access the page? Perhaps 500 internal server error? Have you tried turning php errors on to see if you get anything spat back at your browser?

    - whats going on on your error logs - something like "tail -f /var/www/<domain>/log/error.log" and see if anything is logged when you access the page.

    - same for suexec if you suspect issues - "tail -f /var/log/httpd/suexec.log" if you think thats causing the problems.

    - if none of that shows anything, pay attention to your mail logs, eg. "tail -f /var/log/maillog" and watch what is happening there. Is the mail being generated but rejected by your mailer? Is it destined for local mailbox or an outside address? Can you otherwise send emails using that same box, eg roundcube logged into a local mailbox?

    More generally, perhaps think about a "development" machine, eg vmware or similar where you have all the php debugging and error notices turned on and can monitor logs accordingly. Once script working on there would be easy to deploy it to real-world site.
     

Share This Page