aboutsummaryrefslogtreecommitdiff
path: root/docs/examples/smtp-multi.c
AgeCommit message (Collapse)Author
2014-11-19examples: Wait recommended 100ms when no file descriptors are readyJay Satiro
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
2014-11-15examples: Don't call select() to sleep on windowsJay Satiro
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
2014-01-12smtp-multi.c: Minor coding style tidyup following POP3 and IMAP additionsSteve Holme
2014-01-12examples: Added comments to SMTP multi example based on other MAIL examplesSteve Holme
2014-01-12examples: Removed user information and TLS setup from SMTP multi exampleSteve Holme
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.
2014-01-05examples: Added required libcurl version information to SMTP examplesSteve Holme
2014-01-04examples: Standardised username and password settings for all email examplesSteve Holme
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.
2014-01-01examples: Updated SMTP multi example to be more realisticSteve Holme
Updated the contents of the email and payload callback as per the IMAP and other SMTP examples.
2013-12-31examples: Updated copyright year for recent editsSteve Holme
2013-12-31examples: Corrected incorrect indentation in smtp-multi.cSteve Holme
2013-12-31examples: Updated SMTP examples to set CURLOPT_UPLOADSteve Holme
2012-07-04Removed non-used variable.Guenter Knauf
2011-11-14curl_easy_setopt arguments should be of type long in the examplesDan Fandrich
2011-03-10sources: update source headersDaniel Stenberg
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.
2010-12-25Use angle address, as for the rest of the example.Brad Hards
Also spelling fix for RECIPIENT #define.
2010-12-23smtp-multi: put recipient within <brackets>Daniel Stenberg
Even if libcurl might to do it for us, it is more correct.
2010-11-04multi use: call multi_perform even on select() timeoutsDaniel Stenberg
2010-11-04example: add smtp-multi.cDaniel Stenberg
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.