title: Mailchimp send email not working
body: <p>I am using the below code to send email with mailchimp api key.but it returns curl error 6 "<strong>Could not resolve host: us1.sts.mailchimp.com</strong>" 
     
  
  <pre><code>$to_emails = array('you@example.com', 'your_mom@example.com');
  $to_names = array('You', 'Your Mom');
  
  $message = array(
      'html'=&gt;'Yo, this is the &lt;b&gt;html&lt;/b&gt; portion',
      'text'=&gt;'Yo, this is the *text* portion',
      'subject'=&gt;'This is the subject',
      'from_name'=&gt;'Me!',
      'from_email'=&gt;'verifed@example.com',
      'to_email'=&gt;$to_emails,
      'to_name'=&gt;$to_names
  );
  
  $tags = array('WelcomeEmail');
  
  $params = array(
      'apikey'=&gt;$apikey,
      'message'=&gt;$message,
      'track_opens'=&gt;true,
      'track_clicks'=&gt;false,
      'tags'=&gt;$tags
  );
  
  $url = "http://us1.sts.mailchimp.com/1.0/SendEmail";
  
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url.'?'.http_build_query($params));
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
  $result = curl_exec($ch);
  echo $result;
  curl_close ($ch);
  
  $data = json_decode($result);
  echo "Status = ".$data-&gt;status."\n";
  </code></pre>
  
  <p>I got this code from <a href="https://apidocs.mailchimp.com/sts/1.0/sendemail.func.php" rel="nofollow">https://apidocs.mailchimp.com/sts/1.0/sendemail.func.php</a></p>