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 */
102 * than smtp:// to request a SSL based connection. */
105 /* If you want to connect to a site who isn't using a certificate that is
117 /* If the site you're connecting to uses a different host name that what
119 * subjectAltName) fields, libcurl will refuse to connect. You can skip
128 * to the address in the reverse-path which triggered them. Otherwise,
134 /* Add two recipients, in this particular case they correspond to the
135 * To: and Cc: addressees in the header, but they could be any kind of
137 recipients = curl_slist_append(recipients, TO);
141 /* We're using a callback function to specify the payload (the headers and
142 * body of the message). You could just use the CURLOPT_READDATA option to
143 * specify a FILE pointer to read from. */
148 /* Since the traffic will be encrypted, it is very useful to turn on debug
149 * information within libcurl to see what is happening during the