Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6610221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:48:45+00:00 2026-05-25T19:48:45+00:00

http://www.raymondselda.com/php-contact-form-with-jquery-validation/ I’m trying a few different contact forms including the one above. I have

  • 0

http://www.raymondselda.com/php-contact-form-with-jquery-validation/

I’m trying a few different contact forms including the one above.

I have it running on this page: http://themeforward.com/demo2/features/contact-form/

The problem is this form does not successfully send e-mails to the address in the code (finished code can be found here: http://www.raymondselda.com/php-contact-form-with-jquery-validation/ )

Does anybody know what the problem may be?

//If there is no error, send the email
    if(!isset($hasError)) {
        $emailTo = 'youremail@email.com'; //Put your own email address here
        $body = "Name: $name \n\nEmail: $email \n\nSubject: $subject \n\nComments:\n $comments";
        $headers = 'From: My Site <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email;

        mail($emailTo, $subject, $body, $headers);
        $emailSent = true;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:48:46+00:00Added an answer on May 25, 2026 at 7:48 pm

    Many reasons:

    1. Mail isn’t configured properly on your server. mail() will return a boolean FALSE if it can’t hand off the email to an SMTP server. You’re not checking for that condition
    2. The SMTP server isn’t configured properly to allow you to send through it
    3. The receiver server has your sending server blacklisted
    4. The email is treated as spam and is getting trashed

    First place to start looking is mail()’s return value. Then go look at your SMTP server’s log to see what happens to the email (if) once PHP handed it over. The SMTP server’s log will also say if the receiving server bounced/refused it.

    If it’s getting silently thrown in a spam folder on the receiver server, there’ll be NO evidence of this on your end, and you’ll have to investigate further on the receiving end.

    Email is a complicated business with many many invididual steps where each one has to work right. Any glitches anywhere along the line and the email is probably gone. You have to investigate what happens at EACH of these stages to figure out why something isn’t being delivered.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://www.dorsetdesigns.co.uk/contact.html try the form it wont send a email to me. i am using
http://www.example.com?a=1&a=2 has a valid form-urlencoded querystring and has two values ( 1 and 2
http://www.coffeeproteindrink.com/method-athlete/ I am trying to remove the open space below the main wrapper, in
http://www.leandrovieira.com/projects/jquery/lightbox/ sample so i have get images in while loop here is my code
http://www.example.com/http://www.test.com I have tried many different methods using .htaccess with no luck. I need
http://www.plus2net.com/php_tutorial/array_checkbox.php the link is my reference in PHP i want to ask how can
http://www.flickr.com/photos/fraserspeirs/4329430635/in/set-72157623224262135/ The above is a link basically showing the form fill view of the
http://www.malsup.com/jquery/corner/ Is there any real disadvantage (like SEO) to creating the rounded corners pixel
http://www.jacksasylum.eu/ContentFlow/docu.php this is the link of jquery plugin which i am using in asp.net
http://www.dscredstorm.com/getisbninfo.aspx I'm trying to use Amazon's api. I downloaded their example code, which is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.