Prasanna Mohanty
2010-08-24 23:43:53 UTC
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
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