// you will have to rework this a little bit- I just whipped it up to share. void mailTHIS(char * url, CURL * curl){ CURLcode res; struct curl_slist *recipients = NULL; struct curl_slist *noRecipients = NULL; struct upload_status upload_ctx; char *recipientlist[]={"populate", "the", "list"} int numRecipients = 3; upload_ctx.lines_read=0; if(curl){ curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); curl_easy_setopt(curl, CURLOPT_MAIL_FROM, from); curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source); curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx); int i=0; while(i