Home | History | Annotate | Download | only in examples

Lines Matching refs:TO

14  * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15 * copies of the Software, and permit persons to whom the Software is
16 * furnished to do so, under the terms of the COPYING file.
24 * SMTP example showing how to send e-mails
32 /* This is a simple example showing how to send mail using libcurl's SMTP
40 #define TO "<addressee@example.net>"
45 "To: " TO "\r\n",
51 "\r\n", /* empty line to divide headers from body, see RFC5322 */
102 * to the address in the reverse-path which triggered them. Otherwise,
108 /* Add two recipients, in this particular case they correspond to the
109 * To: and Cc: addressees in the header, but they could be any kind of
111 recipients = curl_slist_append(recipients, TO);
115 /* We're using a callback function to specify the payload (the headers and
116 * body of the message). You could just use the CURLOPT_READDATA option to
117 * specify a FILE pointer to read from. */
134 * be able to re-use this connection for additional messages (setting
136 * curl_easy_perform() again. It may not be a good idea to keep the
138 * may result in the server timing out the connection), and you do want to