~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to docs/examples/smtp-multi.c

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2011-02-28 19:35:36 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20110228193536-p3a9jawxxofcsz7o
Tags: upstream-7.21.4
ImportĀ upstreamĀ versionĀ 7.21.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#define SMTPSERVER "smtp.example.com"
22
22
#define SMTPPORT ":587" /* it is a colon+port string, but you can set it
23
23
                           to "" to use the default port */
24
 
#define RECEPIENT "receipient@example.com"
 
24
#define RECIPIENT "<recipient@example.com>"
25
25
#define MAILFROM "<realuser@example.com>"
26
26
 
27
27
#define MULTI_PERFORM_HANG_TIMEOUT 60 * 1000
99
99
   if(!mcurl)
100
100
     return 2;
101
101
 
102
 
   rcpt_list = curl_slist_append(rcpt_list, RECEPIENT);
 
102
   rcpt_list = curl_slist_append(rcpt_list, RECIPIENT);
103
103
   /* more addresses can be added here
104
 
      rcpt_list = curl_slist_append(rcpt_list, "others@example.com");
 
104
      rcpt_list = curl_slist_append(rcpt_list, "<others@example.com>");
105
105
   */
106
106
 
107
107
   curl_easy_setopt(curl, CURLOPT_URL, "smtp://" SMTPSERVER SMTPPORT);