curl-library
error using smtp with libcurl
From: Prasanna Mohanty <mkprasanna_at_hotmail.com>
Date: Tue, 24 Aug 2010 23:43:53 +0000
Date: Tue, 24 Aug 2010 23:43:53 +0000
Hello,
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://10.207.80.101");
curl_easy_setopt(curl,CURLOPT_MAIL_FROM, "prasanna.mohanty<at>merson.com");
curl_easy_setopt(curl,CURLOPT_MAIL_RCPT, "prasanna.mohanty<at>emerson.com");
curl_easy_setopt(curl, CURLOPT_READDATA, hd_src);
curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
(curl_off_t)fsize);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
--
Thanks
Prasanna Mohanty
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-08-25