if (MySQL_DB_Query($Settings["MySQL"]["DB"], $sql))
{
$headers2 = "From: Issue Tracking<email@email.com> \r\n";
$headers2 .= "X-Priority: 1\r\n"; //1 UrgentMessage, 3 Normal
$headers2 .= "MIME-Version: 1.0;\n";
$headers2 .= "Content-type: text/html; charset=iso-8859-1;\n";
$msg = "A Issue has been logged and needs review.";
$sub = "Issue Tracking Submission";
if ($product_family2 = 'Window Components')
{
$to = 'J0j0@OOSG.NET';
}
else {
$to = 'Jkocak@colonialcraft.com';
}
mail($to,$sub,$msg,$headers2);
I did a test and did an echo $product_family2; and thats resulted in showing Window Components, but it did not use if... it used else. What am I missing?