aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/smtp-mime.c
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/smtp-mime.c')
-rw-r--r--docs/examples/smtp-mime.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/examples/smtp-mime.c b/docs/examples/smtp-mime.c
index 35997fa0e..4f3fbfd53 100644
--- a/docs/examples/smtp-mime.c
+++ b/docs/examples/smtp-mime.c
@@ -70,16 +70,17 @@ int main(void)
{
CURL *curl;
CURLcode res = CURLE_OK;
- struct curl_slist *headers = NULL;
- struct curl_slist *recipients = NULL;
- struct curl_slist *slist = NULL;
- curl_mime *mime;
- curl_mime *alt;
- curl_mimepart *part;
- const char **cpp;
curl = curl_easy_init();
if(curl) {
+ struct curl_slist *headers = NULL;
+ struct curl_slist *recipients = NULL;
+ struct curl_slist *slist = NULL;
+ curl_mime *mime;
+ curl_mime *alt;
+ curl_mimepart *part;
+ const char **cpp;
+
/* This is the URL for your mailserver */
curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");