summaryrefslogtreecommitdiff
path: root/docs/examples/smtp-multi.c
Commit message (Collapse)AuthorAgeFilesLines
* code style: use spaces around plusesDaniel Stenberg2017-09-111-2/+2
|
* examples/mime: minor example code fixesViktor Szakats2017-09-051-2/+2
|
* examples: adhere to curl code styleDaniel Stenberg2016-02-111-4/+4
| | | | | | | | | | All plain C examples now (mostly) adhere to the curl code style. While they are only examples, they had diverted so much and contained all sorts of different mixed code styles by now. Having them use a unified style helps users and readability. Also, as they get copy-and-pasted widely by users, making sure they're clean and nice is a good idea. 573 checksrc warnings were addressed.
* URLs: change all http:// URLs to https://Daniel Stenberg2016-02-031-1/+1
|
* examples: Added website parse-able descriptions to the e-mail examplesSteve Holme2015-11-221-1/+7
|
* examples: Wait recommended 100ms when no file descriptors are readyJay Satiro2014-11-191-8/+12
| | | | | | | | | Prior to this change when no file descriptors were ready on platforms other than Windows the multi examples would sleep whatever was in timeout, which may or may not have been less than the minimum recommended value [1] of 100ms. [1]: http://curl.haxx.se/libcurl/c/curl_multi_fdset.html
* examples: Don't call select() to sleep on windowsJay Satiro2014-11-151-8/+26
| | | | | | | | | | | | Windows does not support using select() for sleeping without a dummy socket. Instead use Windows' Sleep() and sleep for 100ms which is the minimum suggested value in the curl_multi_fdset() doc. Prior to this change the multi examples would exit prematurely since select() would error instead of sleeping when called without an fd. Reported-by: Johan Lantz Bug: http://curl.haxx.se/mail/lib-2014-11/0221.html
* smtp-multi.c: Minor coding style tidyup following POP3 and IMAP additionsSteve Holme2014-01-121-13/+12
|
* examples: Added comments to SMTP multi example based on other MAIL examplesSteve Holme2014-01-121-8/+24
|
* examples: Removed user information and TLS setup from SMTP multi exampleSteve Holme2014-01-121-18/+5
| | | | | | | Simplified the SMTP multi example as this example should demonstrate the differences the easy and multi interfaces rather than introduce new concepts such as user authentication and TLS which are shown in the TLS and SSL examples.
* examples: Added required libcurl version information to SMTP examplesSteve Holme2014-01-051-4/+6
|
* examples: Standardised username and password settings for all email examplesSteve Holme2014-01-041-4/+2
| | | | | | Replaced the use of CURLOPT_USERPWD for the preferred CURLOPT_USERNAME and CURLOPT_PASSWORD options and used the same username and password for all email examples which is the same as that used in the test suite.
* examples: Updated SMTP multi example to be more realisticSteve Holme2014-01-011-35/+44
| | | | | Updated the contents of the email and payload callback as per the IMAP and other SMTP examples.
* examples: Updated copyright year for recent editsSteve Holme2013-12-311-1/+1
|
* examples: Corrected incorrect indentation in smtp-multi.cSteve Holme2013-12-311-41/+41
|
* examples: Updated SMTP examples to set CURLOPT_UPLOADSteve Holme2013-12-311-0/+1
|
* Removed non-used variable.Guenter Knauf2012-07-041-2/+0
|
* curl_easy_setopt arguments should be of type long in the examplescurl-7_23_0Dan Fandrich2011-11-141-6/+6
|
* sources: update source headersDaniel Stenberg2011-03-101-2/+15
| | | | | | All C and H files now (should) feature the proper project curl source code header, which includes basic info, a copyright statement and some basic disclaimers.
* Use angle address, as for the rest of the example.Brad Hards2010-12-251-3/+3
| | | | Also spelling fix for RECIPIENT #define.
* smtp-multi: put recipient within <brackets>Daniel Stenberg2010-12-231-1/+1
| | | | Even if libcurl might to do it for us, it is more correct.
* multi use: call multi_perform even on select() timeoutsDaniel Stenberg2010-11-041-6/+2
|
* example: add smtp-multi.cDaniel Stenberg2010-11-041-0/+196
An example application source code sending SMTP mail with the multi interface. It is based on the code Alona Rossen provided, which in turn is based on existing example/test code, and I converted it even more into a decent example with a fair multi API use, put the info required to edit at the top and I added some comments.