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 class="row 50%">
                                                      <div class="12u"><textarea name="message" placeholder="Message" rows="6"></textarea></div>
                                                <div class="row">
                                                      <div class="12u">
                                                            <ul class="actions">
                                                                  <li><input type="submit" value="Send Message" /></li>

$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent="From: $name \n Message: $message";
$recipient = "";
$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!";
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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 ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
What's the error message returned? Did you configure the SMTP info in php.ini properly?

Why is my PHP script not sending emails?

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


Send Mail using SMTP and PHP

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.