Closed Thread
Results 1 to 2 of 2

Thread: Can't receive messages from the contact form

  1. #1
    photoain is offline x10Hosting Member photoain is an unknown quantity at this point
    Join Date
    Jan 2012
    Posts
    5

    Can't receive messages from the contact form

    Hello!
    I have been trying many contact forms a few days. Every this form (even with smtp) - shows me a message, that You message have been sent. But when I check my inbox (here or gmail) - there is nothing.

    I tried to find any info - guide - how to setup settings in contact form on your hosting, but I see it's impossible to find anything.

    Can someone tell me what is wrong, for example, in this form (maybe I miss something, or I just use wrong forms):

    http://www.photoainfo.x10.mx/aglon/contact/contact.php

    T
    here are 3 files in contact folder.

    Thank you.

  2. #2
    delirila is offline x10Hosting Member delirila is an unknown quantity at this point
    Join Date
    Jan 2012
    Posts
    2

    Re: Can't receive messages from the contact form

    Well, this doesn't have much to do with the form not working, but your HTML isn't quite right.
    Your form should be inside of the <body></body> tags, and you don't have a closing </html> tag.
    The code for your page should look something like this:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    
    <head>
    <title>Contact Form</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/mootools/1.3.0/mootools-yui-compressed.js"></script>
    </head>
    
    <body>
    <form action="" method="POST" enctype="multipart/form-data"> 
    <div align="center"> 
                  <br />Name*<br />
                  <input type="text" name="name" size="40" /> 
                  <br />Phone<br />
                  <input type="text" name="tel" size="40" />
                  <br />Your email*<br />
                  <input type="text" name="email" size="40" />
                  <br />Subject<br />
                  <input type="text" name="title" size="40" />
                  <br />Comment*<br />
                  <textarea rows="10" name="mess" cols="30"></textarea>
                  <br />File<br />
                  <input name="attachfile" type="file" size="28" />
                  <br />Pic<br />
                  <input name="attachimage" type="file" size="28" />
                  <br /><br /><input type="submit" value="Send" name="submit" />
    </div> 
    </form> 
    * Can't be empty
    </body>
    
    </html>
    However, regarding the form itself, it seems you don't have any action set for the form.
    What page is the form information supposed to be submitted to? Is it submitting to the same page that the form is on, or is there an outside page with the code that will use the inputted information?

Closed Thread

Similar Threads

  1. cannot send messages through contact form from my site
    By populariavictoria86 in forum Free Hosting
    Replies: 0
    Last Post: 07-09-2011, 04:01 PM
  2. Replies: 3
    Last Post: 06-14-2011, 10:31 AM
  3. Contact Form
    By driveflexfuel in forum Programming Help
    Replies: 2
    Last Post: 10-12-2009, 02:46 PM
  4. how to sign up to receive email messages?
    By anilson1 in forum Free Hosting
    Replies: 2
    Last Post: 07-23-2008, 10:25 PM
  5. Contact Form
    By o0slowpaul0o in forum Tutorials
    Replies: 6
    Last Post: 06-11-2005, 04:36 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers