Server 2012 IIS 8 SMTP

I need a php form to send mail from a contact form.  I have the forms, and I have tried setting up SMTP service on 2012 R2.  I have had no joy.  Is there a chance someone has a walk through so I could find the likely one check box I have missed along the way?

<!-- Contact Form -->
                                          <form method="post" action="mail.php">
                                                <div class="row 50%">
                                                      <div class="6u 12u(mobile)"><input type="text" name="name" placeholder="Name" /></div>
                                                      <div class="6u 12u(mobile)"><input type="email" name="email" placeholder="Email" /></div>
                                                </div>
                                                <div class="row 50%">
                                                      <div class="12u"><textarea name="message" placeholder="Message" rows="6"></textarea></div>
                                                </div>
                                                <div class="row">
                                                      <div class="12u">
                                                            <ul class="actions">
                                                                  <li><input type="submit" value="Send Message" /></li>
                                                            </ul>
                                                      </div>
                                                </div>
                                          </form>



Mail.php
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent="From: $name \n Message: $message";
$recipient = "randy@raceaz.com";
$subject = "Contact Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("C'mon ya Dummy, figure it out - Error!");
echo "Thank You!";
?>
LVL 2
CEORACEAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongCommented:
What's the error message returned? Did you configure the SMTP info in php.ini properly?

Why is my PHP script not sending emails?
http://www.html-form-guide.com/email-form/php-script-not-sending-email.html

If above doesn't work, you can also try these scripts

PHPMailer
http://phpmailer.worxware.com/index.php?pg=examples

Send Mail using SMTP and PHP
http://www.9lessons.info/2009/10/send-mail-using-smtp-and-php.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.