Help me with my form PLEASE!!

Discussion in 'PHP' started by buckmajor, Mar 12, 2009.

  1. #1
    Hi there

    I have a huge problem with my form and been trying to figure it out for hours and close to 2days now :(.

    The problem is, when the form is filled out and sent, the form is not going to the specified email.

    Please can someone help me, so sorry to bother you and would really appreciate anything at hand.

    Code 1: FORM

    PHP File

     
    buckmajor, Mar 12, 2009 IP
  2. Traffic-Bug

    Traffic-Bug Active Member

    Messages:
    1,866
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #2
    I dont see anything wrong - you mean you are not getting the email>? then something wrong with your SMTP server.
     
    Traffic-Bug, Mar 12, 2009 IP
  3. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try getting rid of the space after the $from address, changing the end-of line from \r\n to just \n, and getting rid of the end-of-line ("\r\n") on the second header (Content-Type).

    If that doesn't work, then just set up a really simple case to see if it's possible to send mail at all from your server - just a one-line script that calls mail('your@address', 'test' ,'test'); And try sending to a different address in case the message is getting blocked as spam at the address you're currently using.
     
    SmallPotatoes, Mar 12, 2009 IP
  4. buckmajor

    buckmajor Active Member

    Messages:
    574
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #4
    Awesome! Thanks for the reply guys.
    Yea Traffic the form is not going to the email but I will give the sample a go from SamllPatotoes and then I will reply asap.

    I wonder if it had something to do with my index page?
    My index page has a button where I use the button to open up in a new window with the form.

    INDEX FILE

     
    buckmajor, Mar 13, 2009 IP
  5. buckmajor

    buckmajor Active Member

    Messages:
    574
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Hi guys I figured out what the problem was..the Hosting I'm using is not allowing PHP files for some reason so I'm waiting on them to get back to me, I think its something to do with SMTP server which I don't know much about.
     
    buckmajor, Mar 13, 2009 IP