thanks for taking a look at this post.
I have created an HTML/PHP form which should take all the form data and send it to myself and the author.
There are 19 inputs on the form and when I first initially started testing the form sent the email no problem, but for some reason now it will not send at all.
I have added the address the form uses to send the email to our white-list and also tried other email providers to receive the mail but still nothing.
Here is the PHP:
    <?php
if(isset($_POST['submit']))
 {
    $author = $_POST['author'];
    $to = "MY EMAIL ADDRESS, $author"; 
    $from = "FROM ADDRESS"; 
    $title = $_POST['title'];
    $first_name = $_POST['first_name'];
    $last_name = $_POST['last_name'];
    $dept = $_POST['dept'];
    $job = $_POST['job'];
    $signature = $_POST['signature'];
    $manager = $_POST['manager'];
    $location = $_POST['location'];
    $start = $_POST['start'];
    $nwc = $_POST['nwc'];
    $vdq = $_POST['vdq'];
    $phone = $_POST['phone'];
    $login = $_POST['login'];
    $domain = $_POST['domain'];
    $password = $_POST['password'];
    $otheremail = $_POST['email'];
    $emailgroups = $_POST['disgroup'];
    $access = $_POST['access'];
    $otheraccess = $_POST['calendar'];
    $subject = "New Starter";
    $message = "Here is the new starter details" . "\n\n" . 
        "Hi Supoprt we have a new starter, here is the information: \n\n" .
        "Title: " . $title . "\n\n" . 
        "First Name: " . $first_name . "\n\n" .
        "Last Name: " . $last_name . "\n\n" .
        "Department: " . $dept . "\n\n" .
        "Job Title: " . $job . "\n\n" . 
        "Signature: " . $signature . "\n\n" .
        "Manager: " . $manager . "\n\n" .
        "Location: " . $location . "\n\n" .
        "Start date: " . $start . "\n\n" .
        "Now We Comply: " . $nwc . "\n\n" .
        "VDQ: " . $vdq . "\n\n" .
        "Phone Required: " . $phone . "\n\n" .
        "AD Login: " . $login . "\n\n" .
        "Domain Name: " . $domain . "\n\n" .
        "Password: " . $password . "\n\n" . 
        "Other Emails: " . $otheremail . "\n\n" .
        "Email Groups: " . $emailgroups . "\n\n" . 
        "Drive & Folder Access: " . $access . "\n\n" .
        "Calendar/Inbox Access: " . $otheraccess . "\n\n"
        . isset($_POST['message']);
    $headers = "From:" . $from;
    $headers2 = "From:" . $to;
    mail($to,$subject,$message,$headers);
    echo "Mail Sent. Thank you " . $author . ", we will contact you shortly.";
    }
?>
I am new to PHP so any help would be appreciated.
 
     
    