Can you please pretty please send me your curl_setopt code? I've tried
everything and still get the URI capacity error. I know I need to call
POST but it doesn't appear to be working.
Here's a snippet:
$params = array(
'apikey'=>$apikey,
'message'=>$message,
'track_opens'=>true,
'track_clicks'=>false,
'tags'=>$tags
);
$url = "
http://us2.sts.mailchimp.com/1.0/
SendEmail";
$ch = curl_init();
$fields_string = '';
foreach($params as $key=>$value)
{ $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string,'&');
//curl_setopt($ch, CURLOPT_URL,
$url.'?'.http_build_query($params));
curl_setopt($ch, CURLOPT_RETURNTRANSFER,
true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
$fields_string);
$result = curl_exec($ch);
Thanks
Ryan