Running curl twice in php
<p>I'm trying to send email via php mail function like below but it doesn't seem to work on IE. It works on all other browsers. Below is the code. Is there a reason why???</p>

<pre><code>$sent1 = mail($to, $subject, $message, $headers);
$sent2 = mail($clientTo, $clientSubject, $clientMessage, $clientHeaders);
if ($sent1 &amp;&amp; $sent2){
                    $ch = curl_init("https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8");
                    curl_setopt($ch, CURLOPT_POST, 1);
                    curl_setopt($ch, CURLOPT_POSTFIELDS, "oid=$sf_oid&amp;first_name=$sf_first_name&amp;last_name=$sf_last_name&amp;company=$sf_company&amp;phone=$sf_phone&amp;email=$sf_email&amp;URL=$sf_website&amp;description=$sf_description&amp;lead_source=$sf_leadsource");
                    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                    curl_exec($ch);
                    $info = curl_getinfo($ch);
                    if($_SERVER['REMOTE_ADDR'] == "124.254.75.167")
                        //print_r($info);
                    curl_close($ch);

                    $ch = curl_init("http://www.rankreport.com.au/ajax/add_new_lead");
                    curl_setopt($ch, CURLOPT_POST, 1);
                    curl_setopt($ch, CURLOPT_POSTFIELDS, "lead_company_id=1&amp;lead_business=1234&amp;lead_first_name=asdf&amp;lead_website=12314.com&amp;lead_phone=1234&amp;lead_email=test@test.com&amp;lead_package=seo");
                    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
                    curl_exec($ch);
                    curl_close($ch);

                    echo '3';
                }
</code></pre>
