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.
32 /* This is a simple example showing how to send mail using libcurl's SMTP
33 * capabilities. It builds on the smtp-mail.c example to add authentication
34 * and, more importantly, transport security to protect the authentication
41 #define TO "<addressee@example.net>"
46 "To: " TO "\r\n",
52 "\r\n", /* empty line to divide headers from body, see RFC5322 */
108 * to Transport Layer Security (TLS) using the STARTTLS command. Be careful
116 * CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST options to 0 (false).
122 * self-signed) and add it to the set of certificates that are known to
125 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem");
130 * to the address in the reverse-path which triggered them. Otherwise,
136 /* Add two recipients, in this particular case they correspond to the
137 * To: and Cc: addressees in the header, but they could be any kind of
139 recipients = curl_slist_append(recipients, TO);
143 /* We're using a callback function to specify the payload (the headers and
144 * body of the message). You could just use the CURLOPT_READDATA option to
145 * specify a FILE pointer to read from. */
150 /* Since the traffic will be encrypted, it is very useful to turn on debug
151 * information within libcurl to see what is happening during the transfer.