https multi-app multi-debugcallback multi-double multi-post multi-single \
persistant post-callback postit2 sepheaders simple simplepost simplessl \
sendrecv httpcustomheader certinfo chkspeed ftpgetinfo ftp-wildcard \
- smtp-multi simplesmtp smtp-tls smtp-vrfy smtp-expn rtsp externalsocket \
- resolve progressfunc pop3s pop3slist imap url2file sftpget ftpsget \
+ smtp-multi smtp-send smtp-tls smtp-vrfy smtp-expn rtsp externalsocket \
+ resolve progressfunc pop3s pop3slist imap-fetch url2file sftpget ftpsget \
postinmemory
# These examples require external dependencies that may not be commonly
#include <string.h>
#include <curl/curl.h>
+/* This is a simple example showing how to send mail using libcurl's SMTP
+ * capabilities. For an exmaple of using the multi interface please see
+ * smtp-multi.c.
+ */
+
int main(void)
{
CURL *curl;
/* send the message (including headers) */
res = curl_easy_perform(curl);
+
/* Check for errors */
if(res != CURLE_OK)
fprintf(stderr, "curl_easy_perform() failed: %s\n",
*/
curl_easy_cleanup(curl);
}
+
return 0;
}
#include <curl/curl.h>
/* This is a simple example showing how to send mail using libcurl's SMTP
- * capabilities. It builds on the simplesmtp.c example, adding some
+ * capabilities. It builds on the smtp-send.c example, adding some
* authentication and transport security.
*/
return 0;
}
-
int main(void)
{
CURL *curl;
curl_slist_free_all(recipients);
curl_easy_cleanup(curl);
}
+
return 0;
}