SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast Albablue89's Avatar
    Join Date
    Jul 2005
    Location
    Scotland
    Posts
    98
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Error on Contact Form submission

    I have a decent looking contact script on the go, but unfortunately it doesn't send messages, it just displays ERORR! message. However, the 'Invalid email address entered' error does work when you put nonsense into the email box.

    Can anyone see why it's not working?

    Thanks!!

    _____
    Last edited by Paul O'B; Feb 23, 2012 at 12:19. Reason: code removed

  2. #2
    Who turned the lights out !! Mandes's Avatar
    Join Date
    May 2005
    Location
    S.W. France
    Posts
    2,496
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I suspect that mail() isnt supported on your local server !! You need to have an SMTP server installed for mail() to work
    A Little Knowledge Is A Very Dangerous Thing.......
    That Makes Me A Lethal Weapon !!!!!!!!

    Contract PHP Programming

  3. #3
    SitePoint Enthusiast Albablue89's Avatar
    Join Date
    Jul 2005
    Location
    Scotland
    Posts
    98
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mandes View Post
    I suspect that mail() isnt supported on your local server !! You need to have an SMTP server installed for mail() to work
    Ahhhh I see.... Never took that into consideration. Thanks.

    Just found out that Apache have a mod_smtpd module in alpha quality for those interested.

    Besides that, thanks for the heads up.

  4. #4
    SitePoint Enthusiast Albablue89's Avatar
    Join Date
    Jul 2005
    Location
    Scotland
    Posts
    98
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mandes View Post
    I suspect that mail() isnt supported on your local server !! You need to have an SMTP server installed for mail() to work
    I have it live and working, except one small problem. phone label content won't be displayed in email content, unless I add it to be a required field. At the moment above you can see it's a value, but it doesn't get posted. If you add it to values and required fields, it will be displayed in the email content.

    Why is this?

  5. #5
    SitePoint Enthusiast Albablue89's Avatar
    Join Date
    Jul 2005
    Location
    Scotland
    Posts
    98
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Error's resolved = Now fully working.

    Thanks


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •