I have an html form with information being sent to this script and everything is working perfectly, except the email being sent... It appears to send (if statement goes through). but I don't receive anything. A few days ago I was receiving emails, where all data would be "Array[]", but now for some reason it's not working.
<?php
echo "<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>";
if (!empty($_POST) && $_POST['email-address'] != null)
{
$inquireType = $_POST['inquiry-type'];
$firstName = $_POST['first-name'];
$lastName = $_POST['last-name'];
$email = $_POST['email-address'];
$businessName = $_POST['business-name'];
$information = $_POST['extra-information'];
$message = "" . $inquireType . ' INQUIRIE FROM: ' . $firstName . ' ' . $lastName . "\r\n" .
'Email: ' . $email . "\r\n" .
'Business Name: ' . $businessName . "\r\n" .
'Additional Information: ' . $information;
$headers = "From: " . strip_tags($_POST['email-address']) . "\r\n";
$headers .= "Reply-To: ". strip_tags($_POST['email-address']) . "\r\n";
$headers .= "CC: bud@budbroesky.com\r\n";
$headers .= "MIME-Version: 1.0\r\n";
mail('myemail@gmail.com', "Inquirie", $message, $headers);
if (mail('myemail@gmail.com', 'Inquirie From ' . $firstName, $message, $headers))
{
echo "<div style='position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: green;'><br><br><p align='center'><font size='5rem' face='Montserrat' color='white'>Inquiry Successfully Sent! Expect a reply from me shortly.";
}
else {
echo "<div style='position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: red;'><br><br><p align='center'><font size='5rem' face='Montserrat' color='white'>Inquiry Not Sent, something must have went wrong...";
}
}
else {
echo "<div style='position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: darkred;'><br><br><p align='center'><font size='5rem' face='Montserrat' color='white'>Inquiry Not Sent, something must have went wrong...";
}
?>