1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

what is wrong with my code?

Discussion in 'HTML & JavaScript' started by yathatguy, Jun 27, 2011.

  1. yathatguy

    yathatguy Registered Member

    Joined:
    May 15, 2011
    Messages:
    58
    Likes Received:
    27
    Location:
    probably a van down by the river
    i am doing a little site for a friends massage&physio business and for some reason the contact form isnt sending the emails. it says it is but they are not arriving.. any thoughts? the site is queenstownmassageDOTcom
    thanks
     
  2. ealexnet

    ealexnet Newbie

    Joined:
    Aug 3, 2010
    Messages:
    34
    Likes Received:
    6
    You should first check your mail spam folder (maybe emails are sent, but you don't see them?), then PHP error logs and then the 'contact/php/contact-send.php' script.
     
  3. ArSiHaSi

    ArSiHaSi Newbie

    Joined:
    Nov 18, 2010
    Messages:
    4
    Likes Received:
    2
    PHP only passes your email to a mailserver. If it could pass the email, you are getting success by the mail() function. Your mailserver (or daemon) has to be configured properly to actually send to mails out to the internet. It depends on your hosting how to check this. If you have a dedicated server you should be easily able to configure it. If you are on some shared solution or even webhosting only, it might be impossible to get this working (because you could be spamming all day long). :rolleyes: