cURL / Mailing Lists / curl-library / Single Mail


error using smtp with libcurl

From: Prasanna Mohanty <>
Date: Tue, 24 Aug 2010 23:43:53 +0000

I see the following error while trying to test smtp to send mail.

Local file size: 17 bytes.
* Protocol smtp not supported or disabled in libcurl
* Unsupported protocol
My overall program structure to set curl options look as follows.
Is there any thing missing in terms of setting any other option?
if(curl) {
       curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
       curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
       curl_easy_setopt(curl,CURLOPT_URL, "smtp://");
    curl_easy_setopt(curl,CURLOPT_MAIL_FROM, "prasanna.mohanty<at>");
    curl_easy_setopt(curl,CURLOPT_MAIL_RCPT, "prasanna.mohanty<at>");
       curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
    curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
    res = curl_easy_perform(curl);
Prasanna Mohanty 		 	   		  

List admin:
Received on 2010-08-25