$owner = mysql_query_with_throw("select email from tbl_admin where id='{$owner_id}'");
            $owner_set = mysql_fetch_array($owner);
            $owner_email = $owner_set['email'];
            $bcc = array();
            array_push($bcc, $owner_email);
        } else {
            $bcc = array("");
        }
        $to = array($data['email']);
        $cc = array("");
        $subject = "Credit Report Published - Clearmydues";
        $body = '
         <p>
         Dear ' . $data['firstname'] . ', <br><br>Congratulations. Your report is available at www.clearmydues.com. Please login to see the analysis.
         </p>';
        send_mail_through_queue($to, $cc, $bcc, $subject, $body, $file_list);
        $usermessage = 'Dear ' . $data['firstname'] . ',Congratulations your credit report is ready.  Please log into www.clearmydues.com to see the analysis.';
        $sendsmstouser = sendsms($data['mobile'], $usermessage);
        header("location:index.php?p=my-score&type=bad");
    }
}
function cmdExperianComm($serviceUrl, $requestParams)
{
    global $javaUrlconnect;
    $webURL = 'http://' . $javaUrlconnect . '/RESTfulExample/rest/services/' . $serviceUrl;
    // Server\
    creteLogs("experian-flow.php", __LINE__, $requestParams . $serviceUrl);
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $webURL);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $requestParams);
function sendmail_attachment($path1, $resumefilename1, $path2, $resumefilename2, $score_id, $path3, $resumefilename3)
{
    $user_id = $_SESSION['GTUserID'];
    $sql_count = "select * from tbl_getscore where id={$score_id} order by id desc limit 1;";
    $result_set = mysql_query_with_throw($sql_count);
    $result = mysql_fetch_assoc($result_set);
    $first_name = $result['first_name'];
    $middle_name = $result['middle_name'];
    $last_name = $result['last_name'];
    $user_name = $first_name . $middle_name . $last_name;
    $txn_id = $result['exp_txn_id'];
    $date = date('Y-m-d');
    $body = "Username: "******"<br/>UTI: " . $txn_id . "<br/>Date: " . $date;
    $subject = "Username: "******"UTI: " . $txn_id . "Date: " . $date;
    global $exp_mail;
    global $exp_mail_to;
    $file_list = array(array("path" => $path1, "file_name" => $resumefilename1), array("path" => $path2, "file_name" => $resumefilename2), array("path" => $path3, "file_name" => $resumefilename3));
    $to = array($exp_mail_to);
    $cc = array("");
    $bcc = array($exp_mail);
    send_mail_through_queue($to, $cc, $bcc, $subject, $body, $file_list);
}