title: cURL with HTML content
body: <p>I need to post to a URL and I am doing this with curl. But the problem is with the HTML content I am posting. I am using this page which I am requesting to send an html email. So it will have inline styles. When I urlencode() or rawurlenocde() these style attribute is stripped. So the mail will not look correct. How can I avoid this and post the HTML as it is ?</p>
  
  <p>This is my code :</p>
  
  <pre><code>            $mail_url  = "to=".$email-&gt;uEmail;
              $mail_url .= "&amp;from=info@domain.com";
              $mail_url .= "&amp;subject=".$email_campaign[0]-&gt;email_subject;
              $mail_url .= "&amp;type=signleOffer";
              $mail_url .= "&amp;html=".rawurlencode($email_campaign[0]-&gt;email_content);
  
              //open curl request to send the mail
              $ch = curl_init();
              curl_setopt($ch,CURLOPT_URL,$url);
              curl_setopt($ch,CURLOPT_POST,count(5));
              curl_setopt($ch,CURLOPT_POSTFIELDS,$mail_url);
              //execute post
              $result = curl_exec($ch);
  </code></pre>